Skip to content

Commit 02633ad

Browse files
authored
Merge pull request #593 from bashtage/numpy-3
ENH: Build against NumPy 2
2 parents facba92 + a8f8dee commit 02633ad

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ regression. Currently only the single variable IV estimators are polished.
133133

134134
- Python 3.9+
135135
- NumPy (1.22+)
136-
- SciPy (1.5+)
137-
- pandas (1.3+)
136+
- SciPy (1.8+)
137+
- pandas (1.4+)
138138
- statsmodels (0.12+)
139-
- formulaic (0.6.5+)
139+
- formulaic (1.0.0+)
140140
- xarray (0.16+, optional)
141-
- Cython (0.29.37+, optional)
141+
- Cython (3.0.10+, optional)
142142

143143

144144
### Testing

ci/azure_template_posix.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
matrix:
1919
python39_minimums:
2020
python.version: '3.9'
21-
NUMPY: 1.22.0
22-
SCIPY: 1.5.0
21+
NUMPY: 1.22.3
22+
SCIPY: 1.8.0
2323
PANDAS: 1.3.0
2424
STATSMODELS: 0.12.0
2525
XARRAY: 0.21.0
@@ -28,7 +28,7 @@ jobs:
2828
python39_mid:
2929
python.version: '3.9'
3030
NUMPY: 1.23.0
31-
SCIPY: 1.6.0
31+
SCIPY: 1.9.0
3232
PANDAS: 1.4.0
3333
STATSMODELS: 0.13.0
3434
XARRAY: 2022.6.0
@@ -38,7 +38,7 @@ jobs:
3838
python39_recent:
3939
python.version: '3.9'
4040
NUMPY: 1.24.0
41-
SCIPY: 1.7.0
41+
SCIPY: 1.10.0
4242
PANDAS: 1.5.0
4343
STATSMODELS: 0.13.0
4444
XARRAY: 2022.12.0
@@ -50,7 +50,7 @@ jobs:
5050
python310_recent:
5151
python.version: '3.10'
5252
NUMPY: 1.24.0
53-
SCIPY: 1.9.0
53+
SCIPY: 1.12.0
5454
PANDAS: 2.0.0
5555
STATSMODELS: 0.14.0
5656
XARRAY: 2023.4.0

ci/install-posix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
CMD="python -m pip install setuptools_scm[toml]>=7 formulaic numpy"
3+
CMD="python -m pip install setuptools_scm[toml]>=8 formulaic numpy"
44
if [[ -n ${NUMPY} ]]; then CMD="$CMD~=${NUMPY}"; fi;
55
CMD="$CMD scipy"
66
if [[ -n ${SCIPY} ]]; then CMD="$CMD~=${SCIPY}"; fi;

doc/source/changes/5.0.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Verison 5.5
2+
----------
3+
- Full compatibility with NumPy 2, and NumPy 1.22.3+
4+
- Compatibility with future pandas releases (3.0.0)
5+
16
Verison 5.4
27
----------
38
- Compatibility with NumPy 2

pyproject.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
requires = [
33
"setuptools>=61",
44
"wheel",
5-
"setuptools_scm[toml]>=7,<8",
6-
"oldest-supported-numpy",
7-
"numpy; python_version>='3.13'",
8-
"cython>=0.29.34"
5+
"setuptools_scm[toml]>=8,<9",
6+
"numpy>=2.0.0rc1,<3",
7+
"cython>=3.0.10,<4"
98
]
109
build-backend = "setuptools.build_meta"
1110

1211
[tool.black]
13-
target-version = ['py39', 'py310', 'py311']
12+
target-version = ['py39', 'py310', 'py311', 'py312']
1413
exclude = '''
1514
(
1615
\.egg

requirements.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
numpy>=1.22.0
2-
pandas>=1.3.0
3-
scipy>=1.5.0
1+
numpy>=1.22.3,<3
2+
pandas>=1.4.0
3+
scipy>=1.8.0
44
statsmodels>=0.12.0
55
mypy_extensions>=0.4
6-
Cython>=0.29.37
6+
Cython>=3.0.10
77
pyhdfe>=0.1
8-
formulaic>=0.6.5
8+
formulaic>=1.0.0
99
# versioning
1010
setuptools_scm[toml]>=8.0.0,<9.0.0
1111

0 commit comments

Comments
 (0)