-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pyproject.toml and drop support for python < 3.8 (#101)
* add pyproject.toml * clean up setup.py for py3.8 minimum * update CI * remove packaging * add wheel build * add in runtime deps * try python3 kludge * change shell to pickup right python version * revert python3 kludging * add activate step * Revert "add activate step" This reverts commit 5e74c6e. * change shell for each setup * remove defaulkt shell * delete empty * split shell defaults * Update pyproject.toml Co-authored-by: Irfan Alibay <[email protected]> * add install and setup_requires * remove print_function * remove pip install of reqs Co-authored-by: Irfan Alibay <[email protected]>
- Loading branch information
Showing
4 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[build-system] | ||
# Minimum requirements for the build system to execute | ||
requires = [ | ||
"cython>=0.28,<3.0", | ||
"setuptools", | ||
"wheel", | ||
# below matches MDA | ||
"numpy==1.20.0; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'", | ||
"numpy==1.20.0; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'", | ||
# arm64 on darwin for py3.8+ requires numpy >=1.21.0 | ||
"numpy==1.21.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin' and platform_python_implementation != 'PyPy'", | ||
"numpy==1.21.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin' and platform_python_implementation != 'PyPy'", | ||
# Scipy: On windows avoid 1.21.6, 1.22.0, and 1.22.1 because they were built on vc142 | ||
"numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", | ||
# As per https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg | ||
# safest to build at 1.21.6 for all other platforms | ||
"numpy==1.21.6; python_version=='3.10' and platform_system !='Windows'and platform_python_implementation != 'PyPy'", | ||
"numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'", | ||
"numpy<2.0; python_version>='3.12'", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters