Skip to content

Commit 9c30fb6

Browse files
committed
Bump minimum NumPy version to 1.22
1 parent c16d7db commit 9c30fb6

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Increase to minimum supported versions of dependencies
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
For Matplotlib 3.9, the :ref:`minimum supported versions <dependencies>` are
5+
being bumped:
6+
7+
+------------+-----------------+---------------+
8+
| Dependency | min in mpl3.8 | min in mpl3.9 |
9+
+============+=================+===============+
10+
| NumPy | 1.21.0 | 1.22.0 |
11+
+------------+-----------------+---------------+
12+
13+
This is consistent with our :ref:`min_deps_policy` and `NEP29
14+
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__

doc/devel/dependencies.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ reference.
2121
* `dateutil <https://pypi.org/project/python-dateutil/>`_ (>= 2.7)
2222
* `fontTools <https://fonttools.readthedocs.io/en/latest/>`_ (>= 4.22.0)
2323
* `kiwisolver <https://github.com/nucleic/kiwi>`_ (>= 1.3.1)
24-
* `NumPy <https://numpy.org>`_ (>= 1.21)
24+
* `NumPy <https://numpy.org>`_ (>= 1.22)
2525
* `packaging <https://pypi.org/project/packaging/>`_ (>= 20.0)
2626
* `Pillow <https://pillow.readthedocs.io/en/latest/>`_ (>= 8.0)
2727
* `pyparsing <https://pypi.org/project/pyparsing/>`_ (>= 2.3.1)
@@ -225,7 +225,7 @@ in your target environment manually:
225225
- `setuptools_scm <https://pypi.org/project/setuptools-scm/>`_ (>= 7). Used to
226226
update the reported ``mpl.__version__`` based on the current git commit.
227227
Also a runtime dependency for editable installs.
228-
- `NumPy <https://numpy.org>`_ (>= 1.21). Also a runtime dependency.
228+
- `NumPy <https://numpy.org>`_ (>= 1.22). Also a runtime dependency.
229229

230230

231231
.. _compile-dependencies:

doc/devel/min_dep_policy.rst

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ specification of the dependencies.
8787
========== ======== ======
8888
Matplotlib Python NumPy
8989
========== ======== ======
90+
`3.9`_ 3.9 1.22.0
9091
`3.8`_ 3.9 1.21.0
9192
`3.7`_ 3.8 1.20.0
9293
`3.6`_ 3.8 1.19.0
@@ -107,6 +108,7 @@ Matplotlib Python NumPy
107108
1.0 2.4 1.1
108109
========== ======== ======
109110

111+
.. _`3.9`: https://matplotlib.org/3.9.0/devel/dependencies.html
110112
.. _`3.8`: https://matplotlib.org/3.8.0/devel/dependencies.html
111113
.. _`3.7`: https://matplotlib.org/3.7.0/devel/dependencies.html
112114
.. _`3.6`: https://matplotlib.org/3.6.0/devel/dependencies.html

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- importlib-resources>=3.2.0
1717
- kiwisolver>=1.3.1
1818
- meson-python>=0.13.1
19-
- numpy>=1.21
19+
- numpy>=1.22
2020
- pillow>=8
2121
- pkg-config
2222
- pybind11>=2.6.0

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _check_versions():
252252
("cycler", "0.10"),
253253
("dateutil", "2.7"),
254254
("kiwisolver", "1.3.1"),
255-
("numpy", "1.21"),
255+
("numpy", "1.22"),
256256
("pyparsing", "2.3.1"),
257257
]:
258258
module = importlib.import_module(modname)

requirements/testing/minver.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ importlib-resources==3.2.0
77
kiwisolver==1.3.1
88
meson-python==0.13.1
99
meson==1.1.0
10-
numpy==1.21.0
10+
numpy==1.22.0
1111
packaging==20.0
1212
pillow==8.0.0
1313
pyparsing==2.3.1

0 commit comments

Comments
 (0)