Skip to content

Commit

Permalink
Merge pull request #12 from astrofrog/unpinned-numpy
Browse files Browse the repository at this point in the history
Add unpinned Numpy for unsupported/future Python versions
  • Loading branch information
astrofrog authored Oct 27, 2020
2 parents 1dabf43 + b486366 commit 4ec3a5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: python -m pip install .
- name: Upgrade pip and setuptools
run: python -m pip install pip setuptools --upgrade
- name: Install wheel
if: matrix.python-version == '3.5'
run: python -m pip install wheel
- name: Install oldest-supported-numpy
run: python -m pip install -v .
- name: Check that numpy was installed
run: python -c 'import numpy'
8 changes: 6 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ install_requires =
numpy==1.13.3; python_version=='3.5' and platform_system!='AIX'
numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'
numpy==1.14.5; python_version=='3.7' and platform_system!='AIX'
numpy==1.17.3; python_version>='3.8' and platform_system!='AIX'
numpy==1.16.0; python_version=='3.5' and platform_system=='AIX'
numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'
numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'
numpy==1.17.3; python_version>='3.8' and platform_system=='AIX'
numpy==1.17.3; python_version=='3.8'
# For Python versions which aren't yet officially supported,
# we specify an unpinned Numpy which allows source distributions
# to be used and allows wheels to be used as soon as they
# become available.
numpy; python_version>='3.9'

0 comments on commit 4ec3a5e

Please sign in to comment.