Skip to content

add pyproject.toml for numpy requirement#272

Open
valrus wants to merge 1 commit into
readbeyond:masterfrom
valrus:master
Open

add pyproject.toml for numpy requirement#272
valrus wants to merge 1 commit into
readbeyond:masterfrom
valrus:master

Conversation

@valrus

@valrus valrus commented Apr 16, 2021

Copy link
Copy Markdown

This PR adds a pyproject.toml file to address the need to manually install numpy before aeneas, which was preventing aeneas from installing correctly in a Heroku app.

I took the approach from this PR on a project with the same issue. Based on the comments on that PR, it should work for any version of pip above 10 and be harmless for lower versions. I tested it in a Heroku deploy and was able to install aeneas directly from a requirements.txt file.

@EthanShoeDev

Copy link
Copy Markdown

A recent update to setuptools broke this fix for me. I created a fork that fixes the issue by pinning setuptools to 75.8.x

@readbeyond

Copy link
Copy Markdown
Owner

@valrus please open the PR against the develop branch, not directly master. Also incorporate the #272 (comment) and test if setuptools must be pinned.

@readbeyond
readbeyond requested review from readbeyond and removed request for readbeyond July 22, 2026 16:37
Comment thread pyproject.toml
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "numpy>=1.9"]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please incorporate the #272 (comment) and test if pinned setuptools indeed works.

Comment thread MANIFEST.in
include README.rst
include requirements.txt
include setupmeta.py
include pyproject.toml

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open the PR against the develop branch, not directly master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants