diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d528907868..d5cb568288 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,12 +21,12 @@ jobs: strategy: matrix: python-version: ['3.11', '3.12', '3.13'] - numpy-version: ['1.26', '2.2'] + numpy-version: ['2.0', '2.2'] dependency-set: ["minimal", "optional"] os: ["ubuntu-latest"] include: - python-version: '3.11' - numpy-version: '1.26' + numpy-version: '2.0' dependency-set: 'optional' os: 'macos-latest' - python-version: '3.13' @@ -34,7 +34,7 @@ jobs: dependency-set: 'optional' os: 'macos-latest' - python-version: '3.11' - numpy-version: '1.26' + numpy-version: '2.0' dependency-set: 'optional' os: 'windows-latest' - python-version: '3.13' diff --git a/changes/3636.misc.md b/changes/3636.misc.md new file mode 100644 index 0000000000..a814160c8b --- /dev/null +++ b/changes/3636.misc.md @@ -0,0 +1 @@ +The minimum required version of NumPy is now 2.0. diff --git a/docs/user-guide/installation.md b/docs/user-guide/installation.md index 89c78804b2..4d323643f1 100644 --- a/docs/user-guide/installation.md +++ b/docs/user-guide/installation.md @@ -6,7 +6,7 @@ Required dependencies include: - [Python](https://docs.python.org/3/) (3.11 or later) - [packaging](https://packaging.pypa.io) (22.0 or later) -- [numpy](https://numpy.org) (1.26 or later) +- [numpy](https://numpy.org) (2.0 or later) - [numcodecs](https://numcodecs.readthedocs.io) (0.14 or later) - [google-crc32c](https://github.com/googleapis/python-crc32c) (1.5 or later) - [typing_extensions](https://typing-extensions.readthedocs.io) (4.9 or later) diff --git a/pyproject.toml b/pyproject.toml index a39956af5e..6f76259979 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ requires-python = ">=3.11" # If you add a new dependency here, please also add it to .pre-commit-config.yml dependencies = [ 'packaging>=22.0', - 'numpy>=1.26', + 'numpy>=2.0', 'numcodecs>=0.14', 'google-crc32c>=1.5', 'typing_extensions>=4.12', @@ -163,7 +163,7 @@ COV_CORE_DATAFILE = ".coverage.eager" [[tool.hatch.envs.test.matrix]] python = ["3.11", "3.12", "3.13"] -numpy = ["1.26", "2.2"] +numpy = ["2.0", "2.2"] deps = ["minimal", "optional"] [tool.hatch.envs.test.overrides] @@ -192,7 +192,7 @@ features = ["test", "gpu"] [[tool.hatch.envs.gputest.matrix]] python = ["3.11", "3.12", "3.13"] -numpy = ["1.26", "2.2"] +numpy = ["2.0", "2.2"] version = ["minimal"] [tool.hatch.envs.gputest.scripts] @@ -234,7 +234,7 @@ python = "3.11" dependencies = [ 'zarr[remote]', 'packaging==22.*', - 'numpy==1.26.*', + 'numpy==2.0.*', 'numcodecs==0.14.*', # 0.14 needed for zarr3 codecs 'fsspec==2023.10.0', 's3fs==2023.10.0',