Skip to content

Commit

Permalink
Fix numpy pinning in wheels (#46)
Browse files Browse the repository at this point in the history
* pin numpy for builds

* add version to setupcfg

* use ==
  • Loading branch information
tlambert03 authored Mar 13, 2022
1 parent 941958d commit 57edb34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[build-system]
requires = ["setuptools", "wheel", "cython", "numpy"]
requires = [
"setuptools",
"wheel",
"cython",
"numpy",
"numpy==1.14.5; python_version=='3.7'",
"numpy==1.17.3; python_version=='3.8'",
"numpy==1.19.3; python_version=='3.9'",
"numpy==1.21.3; python_version=='3.10'",
]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ install_requires =
numpy
resource-backed-dask-array
typing-extensions
numpy>=1.14.5;python_version=='3.7'
numpy>=1.17.3;python_version=='3.8'
numpy>=1.19.3;python_version=='3.9'
numpy>=1.21.3;python_version=='3.10'
python_requires = >=3.7,<3.11
include_package_data = True
package_dir =
Expand Down

0 comments on commit 57edb34

Please sign in to comment.