Skip to content

Commit

Permalink
Update minimum numpy support to match 1.23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Dec 29, 2023
1 parent 97b5a61 commit 2345677
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python-version: 3.9
full-deps: false
codecov: true
numpy: numpy=1.22.3
numpy: numpy=1.23.2
- name: asv_check
os: ubuntu-latest
python-version: 3.9
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
with:
micromamba: true
full-deps: true
numpy: numpy=1.22.3
numpy: numpy=1.23.2

- name: install
run: |
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.22.3'
NUMPY_MIN: '1.23.2'
imageName: 'windows-2019'
Linux-Python312-64bit-full-wheel:
PYTHON_VERSION: '3.12'
Expand All @@ -53,7 +53,7 @@ jobs:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.22.3'
NUMPY_MIN: '1.23.2'
imageName: 'ubuntu-latest'
pool:
vmImage: $(imageName)
Expand Down
2 changes: 1 addition & 1 deletion maintainer/conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
- mmtf-python
- mock
- networkx
- numpy>=1.22.3
- numpy>=1.23.2
- pytest
- python==3.9
- pytng>=0.2.3
Expand Down
3 changes: 3 additions & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Fixes
Enhancements

Changes
* As per NEP29, the minimum version of numpy has been raised to 1.23.
We have opted to pin to 1.23.2 to ensure the same minimum numpy version
is used from python 3.9 to 3.11 (Issue #4401, PR #4402)

Deprecations

Expand Down
6 changes: 3 additions & 3 deletions package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ requires = [
# Scipy: On windows avoid 1.21.6, 1.22.0, and 1.22.1 because they were built on vc142
# Let's set everything to this version to make things clean, also avoids other issues
# on other archs
"numpy==1.22.3; python_version=='3.9' and platform_python_implementation != 'PyPy'",
"numpy==1.22.3; python_version=='3.10' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.9' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.10' and platform_python_implementation != 'PyPy'",
"numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'",
"numpy==1.26.0; python_version=='3.12' and platform_python_implementation != 'PyPy'",
# For unreleased versions of Python there is currently no known supported
Expand All @@ -35,7 +35,7 @@ maintainers = [
]
requires-python = ">=3.9"
dependencies = [
'numpy>=1.22.3',
'numpy>=1.23.2',
'GridDataFormats>=0.4.0',
'mmtf-python>=1.0.0',
'joblib>=0.12',
Expand Down
2 changes: 1 addition & 1 deletion package/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matplotlib
mmtf-python
netcdf4
networkx
numpy>=1.22.3
numpy>=1.23.2
packaging
parmed
pytest
Expand Down
4 changes: 2 additions & 2 deletions package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def long_description(readme):
exts, cythonfiles = extensions(config)

install_requires = [
'numpy>=1.22.3',
'numpy>=1.23.2',
'GridDataFormats>=0.4.0',
'mmtf-python>=1.0.0',
'joblib>=0.12',
Expand Down Expand Up @@ -637,7 +637,7 @@ def long_description(readme):
# all standard requirements are available through PyPi and
# typically can be installed without difficulties through setuptools
setup_requires=[
'numpy>=1.21.0',
'numpy>=1.23.2',
'packaging',
],
install_requires=install_requires,
Expand Down

0 comments on commit 2345677

Please sign in to comment.