Skip to content

Commit c7b166e

Browse files
dstansbyd-v-b
andauthored
Bump mimimum supported version of numpy (#3636)
* Bump mimimum supported version of numpy * Update changelog entry filename --------- Co-authored-by: Davis Bennett <[email protected]>
1 parent 1c05c1a commit c7b166e

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
strategy:
2222
matrix:
2323
python-version: ['3.11', '3.12', '3.13']
24-
numpy-version: ['1.26', '2.2']
24+
numpy-version: ['2.0', '2.2']
2525
dependency-set: ["minimal", "optional"]
2626
os: ["ubuntu-latest"]
2727
include:
2828
- python-version: '3.11'
29-
numpy-version: '1.26'
29+
numpy-version: '2.0'
3030
dependency-set: 'optional'
3131
os: 'macos-latest'
3232
- python-version: '3.13'
3333
numpy-version: '2.2'
3434
dependency-set: 'optional'
3535
os: 'macos-latest'
3636
- python-version: '3.11'
37-
numpy-version: '1.26'
37+
numpy-version: '2.0'
3838
dependency-set: 'optional'
3939
os: 'windows-latest'
4040
- python-version: '3.13'

changes/3636.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The minimum required version of NumPy is now 2.0.

docs/user-guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Required dependencies include:
66

77
- [Python](https://docs.python.org/3/) (3.11 or later)
88
- [packaging](https://packaging.pypa.io) (22.0 or later)
9-
- [numpy](https://numpy.org) (1.26 or later)
9+
- [numpy](https://numpy.org) (2.0 or later)
1010
- [numcodecs](https://numcodecs.readthedocs.io) (0.14 or later)
1111
- [google-crc32c](https://github.com/googleapis/python-crc32c) (1.5 or later)
1212
- [typing_extensions](https://typing-extensions.readthedocs.io) (4.9 or later)

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ requires-python = ">=3.11"
3333
# If you add a new dependency here, please also add it to .pre-commit-config.yml
3434
dependencies = [
3535
'packaging>=22.0',
36-
'numpy>=1.26',
36+
'numpy>=2.0',
3737
'numcodecs>=0.14',
3838
'google-crc32c>=1.5',
3939
'typing_extensions>=4.12',
@@ -163,7 +163,7 @@ COV_CORE_DATAFILE = ".coverage.eager"
163163

164164
[[tool.hatch.envs.test.matrix]]
165165
python = ["3.11", "3.12", "3.13"]
166-
numpy = ["1.26", "2.2"]
166+
numpy = ["2.0", "2.2"]
167167
deps = ["minimal", "optional"]
168168

169169
[tool.hatch.envs.test.overrides]
@@ -192,7 +192,7 @@ features = ["test", "gpu"]
192192

193193
[[tool.hatch.envs.gputest.matrix]]
194194
python = ["3.11", "3.12", "3.13"]
195-
numpy = ["1.26", "2.2"]
195+
numpy = ["2.0", "2.2"]
196196
version = ["minimal"]
197197

198198
[tool.hatch.envs.gputest.scripts]
@@ -234,7 +234,7 @@ python = "3.11"
234234
dependencies = [
235235
'zarr[remote]',
236236
'packaging==22.*',
237-
'numpy==1.26.*',
237+
'numpy==2.0.*',
238238
'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs
239239
'fsspec==2023.10.0',
240240
's3fs==2023.10.0',

0 commit comments

Comments
 (0)