Skip to content

Commit

Permalink
add pyproject.toml file for build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz committed Apr 7, 2022
1 parent 46abf66 commit 4a19e01
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
[build-system]
requires = [
"setuptools",
"cython",
"oldest-supported-numpy",
]
requires = ["setuptools",
"wheel",
"cython>=0.29.21",
"numpy==1.16.0; python_version <= '3.7'",
"numpy==1.17.3; python_version == '3.8'",
"numpy==1.19.3; python_version == '3.9'",
"numpy==1.21.4; python_version =='3.10'",
"numpy; python_version >= '3.11'",
]

# To ensure the best compatibility, try to match the numpy reqs
# https://github.com/scipy/oldest-supported-numpy/blob/master/setup.cfg

0 comments on commit 4a19e01

Please sign in to comment.