From 7ff4904d4950dad8a522b2a2bc57f1a20e792fb3 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Sun, 17 Sep 2023 13:51:54 +0200 Subject: [PATCH] Bump minimum NumPy version to 1.23 --- doc/api/next_api_changes/development/26800-OG.rst | 14 ++++++++++++++ doc/devel/min_dep_policy.rst | 2 ++ doc/users/installing/dependencies.rst | 4 ++-- environment.yml | 2 +- lib/matplotlib/__init__.py | 2 +- pyproject.toml | 2 +- requirements/testing/minver.txt | 2 +- 7 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 doc/api/next_api_changes/development/26800-OG.rst diff --git a/doc/api/next_api_changes/development/26800-OG.rst b/doc/api/next_api_changes/development/26800-OG.rst new file mode 100644 index 000000000000..d536f8240c76 --- /dev/null +++ b/doc/api/next_api_changes/development/26800-OG.rst @@ -0,0 +1,14 @@ +Increase to minimum supported versions of dependencies +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +For Matplotlib 3.9, the :ref:`minimum supported versions ` are +being bumped: + ++------------+-----------------+---------------+ +| Dependency | min in mpl3.8 | min in mpl3.9 | ++============+=================+===============+ +| NumPy | 1.21.0 | 1.23.0 | ++------------+-----------------+---------------+ + +This is consistent with our :ref:`min_deps_policy` and `NEP29 +`__ diff --git a/doc/devel/min_dep_policy.rst b/doc/devel/min_dep_policy.rst index baf6db9811a8..a702b5930fd8 100644 --- a/doc/devel/min_dep_policy.rst +++ b/doc/devel/min_dep_policy.rst @@ -88,6 +88,7 @@ specification of the dependencies. ========== ======== ====== Matplotlib Python NumPy ========== ======== ====== +`3.9`_ 3.9 1.23.0 `3.8`_ 3.9 1.21.0 `3.7`_ 3.8 1.20.0 `3.6`_ 3.8 1.19.0 @@ -108,6 +109,7 @@ Matplotlib Python NumPy 1.0 2.4 1.1 ========== ======== ====== +.. _`3.9`: https://matplotlib.org/3.9.0/devel/dependencies.html .. _`3.8`: https://matplotlib.org/3.8.0/devel/dependencies.html .. _`3.7`: https://matplotlib.org/3.7.0/devel/dependencies.html .. _`3.6`: https://matplotlib.org/3.6.0/devel/dependencies.html diff --git a/doc/users/installing/dependencies.rst b/doc/users/installing/dependencies.rst index 86e7e1bbe596..fa666d280732 100644 --- a/doc/users/installing/dependencies.rst +++ b/doc/users/installing/dependencies.rst @@ -25,7 +25,7 @@ reference. * `dateutil `_ (>= 2.7) * `fontTools `_ (>= 4.22.0) * `kiwisolver `_ (>= 1.3.1) -* `NumPy `_ (>= 1.21) +* `NumPy `_ (>= 1.23) * `packaging `_ (>= 20.0) * `Pillow `_ (>= 8.0) * `pyparsing `_ (>= 2.3.1) @@ -238,7 +238,7 @@ then you must manually install the following packages into your development envi - `setuptools_scm `_ (>= 7). Used to update the reported ``mpl.__version__`` based on the current git commit. Also a runtime dependency for editable installs. -- `NumPy `_ (>= 1.21). Also a runtime dependency. +- `NumPy `_ (>= 1.22). Also a runtime dependency. .. _compile-dependencies: diff --git a/environment.yml b/environment.yml index d50e544edb0d..174497df6b4d 100644 --- a/environment.yml +++ b/environment.yml @@ -17,7 +17,7 @@ dependencies: - kiwisolver>=1.3.1 - pybind11>=2.6.0 - meson-python>=0.13.1 - - numpy>=1.21 + - numpy>=1.23 - pillow>=8 - pkg-config - pygobject diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 5836cd3a2ccf..cc94e530133b 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -251,7 +251,7 @@ def _check_versions(): ("cycler", "0.10"), ("dateutil", "2.7"), ("kiwisolver", "1.3.1"), - ("numpy", "1.21"), + ("numpy", "1.23"), ("pyparsing", "2.3.1"), ]: module = importlib.import_module(modname) diff --git a/pyproject.toml b/pyproject.toml index d20f76bade39..7661d039d370 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "cycler >= 0.10", "fonttools >= 4.22.0", "kiwisolver >= 1.3.1", - "numpy >= 1.21", + "numpy >= 1.23", "packaging >= 20.0", "pillow >= 8", "pyparsing >= 2.3.1", diff --git a/requirements/testing/minver.txt b/requirements/testing/minver.txt index b399bd996e08..1a95367eff14 100644 --- a/requirements/testing/minver.txt +++ b/requirements/testing/minver.txt @@ -7,7 +7,7 @@ importlib-resources==3.2.0 kiwisolver==1.3.1 meson-python==0.13.1 meson==1.1.0 -numpy==1.21.0 +numpy==1.23.0 packaging==20.0 pillow==8.0.0 pyparsing==2.3.1