Skip to content

Commit

Permalink
Update numpy's support for Python <= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ragibson committed Sep 13, 2024
1 parent 9252086 commit db57f7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
pip install setuptools
pip install numpy cython flake8 pytest
pip install cython flake8 pytest
python setup.py install
- name: Lint with flake8
run: |
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
readme = readme_file.read()

requirements = [
"Click", "Pillow", "numpy; python_version>='3.9'",
"Click", "Pillow", "numpy; python_version>='3.10'",
"numpy<2.1.0; python_version>='3.9' and python_version<'3.10'"
"numpy<1.25.0; python_version>='3.8' and python_version<'3.9'"
]

Expand Down

0 comments on commit db57f7d

Please sign in to comment.