Skip to content

Commit

Permalink
Build wheels with latest numpy and test them with oldest supported numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
kbvw committed Aug 13, 2024
1 parent 46f6c50 commit 4d2bfd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
7 changes: 1 addition & 6 deletions packaging/python/build_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cython
packaging
numpy==1.17.5;python_version=='3.8'
numpy==1.19.3;python_version=='3.9' and platform_machine!='arm64'
numpy==1.21.3;python_version=='3.9' and platform_machine=='arm64'
numpy==1.21.4;python_version=='3.10'
numpy==1.23.5;python_version=='3.11'
numpy==1.26.0;python_version=='3.12'
numpy
11 changes: 11 additions & 0 deletions packaging/python/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# General test requirements
pytest
setuptools;python_version>='3.12' # From 3.12, no longer installed by default

# Oldest supported numpy versions
-numpy==1.17.5;python_version=='3.8'
-numpy==1.19.3;python_version=='3.9' and platform_machine!='arm64'
-numpy==1.21.3;python_version=='3.9' and platform_machine=='arm64'
-numpy==1.21.4;python_version=='3.10'
-numpy==1.23.5;python_version=='3.11'
-numpy==1.26.0;python_version=='3.12'
6 changes: 2 additions & 4 deletions packaging/python/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ fi
$python_exe -m pip install --upgrade pip


# install numpy, pytest and neuron
# we install setuptools because since python 3.12 it is no more installed
# by default
$python_exe -m pip install "numpy" pytest setuptools
# install test requirements
$python_exe -m pip install -r packaging/python/test_requirements.txt
$python_exe -m pip install $python_wheel
$python_exe -m pip show neuron || $python_exe -m pip show neuron-nightly

Expand Down

0 comments on commit 4d2bfd8

Please sign in to comment.