Skip to content

Commit ea45e16

Browse files
authored
Merge pull request #299 from bashtage/update-setup-no-reqs
MAINT: Update setup to reflect correct requirements
2 parents 0d44256 + 206a53d commit ea45e16

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build-system]
22
requires = [
3-
"packaging==20.5; platform_machine=='arm64'", # macos M1
3+
"packaging>=21.0; platform_machine=='arm64'",
44
"setuptools",
55
"wheel",
6-
"Cython>=0.29.22,<3.0", # Note: keep in sync with tools/cythonize.py
6+
"Cython>=0.29.24,<3.0",
77
"numpy==1.16.6; python_version<='3.7'",
88
"numpy==1.17.5; python_version=='3.8'",
99
"numpy==1.19.5; python_version=='3.9'",

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy>=1.14
2-
cython>=0.29.22
2+
cython>=0.29.24
33
setuptools
44
wheel

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
raise ImportError("tempita required to install, use pip install tempita")
2626

2727
with open("requirements.txt") as f:
28-
required = f.read().splitlines()
28+
setup_required = f.read().splitlines()
29+
install_required = [pkg for pkg in setup_required if "numpy" in pkg]
2930

3031
CYTHON_COVERAGE = os.environ.get("RANDOMGEN_CYTHON_COVERAGE", "0") in (
3132
"true",
@@ -384,6 +385,7 @@ def is_pure(self):
384385
"RDRAND",
385386
],
386387
zip_safe=False,
387-
install_requires=required,
388+
install_requires=install_required,
389+
setup_requires=setup_required,
388390
python_requires=">=3.6",
389391
)

0 commit comments

Comments
 (0)