Skip to content

Commit 3f1e56f

Browse files
committed
MAINT: Insert some initial NumPy caps
Currently require NumPy<2
1 parent 56e9c56 commit 3f1e56f

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ requires = [
66
"cython>=0.29.26,<3", # Sync with CYTHON_MIN_VER in setup
77
# Workaround for oldest supported numpy using 1.21.6, but SciPy 1.9.2+ requiring 1.22.3+
88
"oldest-supported-numpy; python_version!='3.10' or platform_system!='Windows' or platform_python_implementation=='PyPy'",
9-
"numpy>=1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
10-
"numpy; python_version>='3.12'",
9+
"numpy>=1.22.3,<2; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
10+
"numpy<2; python_version>='3.12'",
1111
"scipy>=1.4",
12-
"setuptools_scm[toml]~=7.0.0"
12+
"setuptools_scm[toml]>=7,<8"
1313
]
1414
build-backend = "setuptools.build_meta"
1515

requirements-doc.txt

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ theano-pymc; os_name != "nt"
1616
pymc3; os_name != "nt"
1717
arviz; os_name != "nt"
1818
jinja2==3.0.3
19-

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Workaround for scipy build requirement
2-
numpy>=1.22.3; python_version=="3.10" and platform_system=="Windows" and platform_python_implementation != "PyPy"
3-
numpy >=1.18 # released December 2019
2+
numpy>=1.22.3,<2; python_version=="3.10" and platform_system=="Windows" and platform_python_implementation != "PyPy"
3+
numpy >=1.18,<2 # released December 2019
44
scipy>=1.4,!=1.9.2 # released December 2019
55
scipy>=1.4,!=1.9.2; sys_platform == "win32" # Blacklist 1.9.2 due to Windows issues
66
pandas>=1.0 # released January 2020

tools/ci/azure/install-posix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ eval $CMD
3737
if [[ ${USE_CVXOPT} = true ]]; then python -m pip install cvxopt; fi
3838

3939
if [ "${PIP_PRE}" = true ]; then
40-
python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas scipy --upgrade --use-deprecated=legacy-resolver
40+
python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy<2" pandas scipy --upgrade --use-deprecated=legacy-resolver
4141
fi

0 commit comments

Comments
 (0)