Skip to content

Commit 71c7bef

Browse files
authored
Merge pull request #515 from bashtage/update-reqs
MAINT: Update requirements for 5.0
2 parents d7286a4 + 2976c4a commit 71c7bef

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,14 @@ that arch will work with older versions.
206206
- Python (3.7+)
207207
- NumPy (1.17+)
208208
- SciPy (1.3+)
209-
- Pandas (0.25+)
209+
- Pandas (1.0+)
210210
- statsmodels (0.11+)
211211
- matplotlib (3+), optional
212212
- property-cached (1.6.4+), optional
213213

214214
### Optional Requirements
215215

216-
- Numba (0.35+) will be used if available **and** when installed without building the binary modules. In order to ensure that these are not built, you must set the environment variable ``ARCH_NO_BINARY=1`` and install without the wheel.
216+
- Numba (0.49+) will be used if available **and** when installed without building the binary modules. In order to ensure that these are not built, you must set the environment variable ``ARCH_NO_BINARY=1`` and install without the wheel.
217217

218218
```shell
219219
export ARCH_NO_BINARY=1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"setuptools",
44
"wheel",
5-
"numpy==1.16.6; python_version<='3.7'",
5+
"numpy==1.17.5; python_version=='3.7'",
66
"numpy==1.17.5; python_version=='3.8'",
77
"numpy==1.19.5; python_version=='3.9'",
88
"numpy; python_version>='3.10'",

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy>=1.17
22
scipy>=1.3
3-
pandas>=0.25
3+
pandas>=1.0
44
statsmodels>=0.11
55
property_cached>=1.6.4

setup.py

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import Command, Extension, find_packages, setup
22
from setuptools.dist import Distribution
3-
3+
import pathlib
44
from collections import defaultdict
55
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
66
import fnmatch
@@ -61,16 +61,13 @@ def build_extensions(self) -> None:
6161
_build_ext.build_extensions(self)
6262

6363

64-
SETUP_REQUIREMENTS = {"numpy": "1.14", "cython": "0.29.14"}
65-
INSTALL_REQUIREMENTS = SETUP_REQUIREMENTS.copy()
66-
INSTALL_REQUIREMENTS.update(
67-
{
68-
"scipy": "1.2.3",
69-
"pandas": "0.23",
70-
"statsmodels": "0.10",
71-
"property_cached": "1.6.4",
72-
}
73-
)
64+
with pathlib.Path('requirements.txt').open() as requirements_txt:
65+
install_requires = [
66+
str(requirement)
67+
for requirement
68+
in pkg_resources.parse_requirements(requirements_txt)
69+
]
70+
7471

7572
cmdclass["build_ext"] = build_ext
7673

@@ -200,12 +197,7 @@ def run_setup(binary: bool = True) -> None:
200197
"Programming Language :: Cython",
201198
"Topic :: Scientific/Engineering",
202199
],
203-
install_requires=[
204-
key + ">=" + INSTALL_REQUIREMENTS[key] for key in INSTALL_REQUIREMENTS
205-
],
206-
setup_requires=[
207-
key + ">=" + SETUP_REQUIREMENTS[key] for key in SETUP_REQUIREMENTS
208-
],
200+
install_requires=install_requires,
209201
python_requires=">=3.7",
210202
)
211203

0 commit comments

Comments
 (0)