Skip to content

Commit 2ac8414

Browse files
committed
increase numpy version for python 3.9 in pyproject.toml
1 parent a0baba5 commit 2ac8414

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/run_tests.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
# add 3.9 once llvmlite supports python 3.9
1312
python-version: [3.7, 3.8, 3.9]
1413

1514
steps:
@@ -33,14 +32,13 @@ jobs:
3332
- if: matrix.os == 'windows-latest'
3433
run: pip install --find-links https://download.pytorch.org/whl/torch_stable.html torch==1.8.0+cpu torchvision==0.9.0+cpu
3534

36-
- run: pip install -r requirements.txt
3735
- name: Lint with flake8
3836
run: |
3937
flake8 pymde/
4038
- name: Install pymde
4139
run: |
4240
python setup.py build_ext --inplace
43-
python setup.py install
41+
pip install .
4442
- name: Test with pytest
4543
run: |
4644
pytest -v pymde/

pyproject.toml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "cython", "oldest-supported-numpy"]
2+
requires = [
3+
"numpy==1.17.5; python_version=='3.7'",
4+
"numpy==1.17.5; python_version=='3.8'",
5+
"numpy >= 1.19; python_version=='3.9'",
6+
"scipy >= 1.6",
7+
"setuptools",
8+
"wheel",
9+
"cython"
10+
]

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cython
2-
numpy==1.17.5
3-
scipy==1.6
2+
numpy >= 1.17.5
3+
scipy >= 1.6
44
torch --find-links https://download.pytorch.org/whl/torch_stable.html
55
torchvision --find-links https://download.pytorch.org/whl/torch_stable.html

0 commit comments

Comments
 (0)