Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump minimum NumPy version to 1.23 #26800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions doc/api/next_api_changes/development/26800-OG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Increase to minimum supported versions of dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For Matplotlib 3.9, the :ref:`minimum supported versions <dependencies>` 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
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__
2 changes: 2 additions & 0 deletions doc/devel/min_dep_policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/users/installing/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ reference.
* `dateutil <https://pypi.org/project/python-dateutil/>`_ (>= 2.7)
* `fontTools <https://fonttools.readthedocs.io/en/latest/>`_ (>= 4.22.0)
* `kiwisolver <https://github.com/nucleic/kiwi>`_ (>= 1.3.1)
* `NumPy <https://numpy.org>`_ (>= 1.21)
* `NumPy <https://numpy.org>`_ (>= 1.23)
* `packaging <https://pypi.org/project/packaging/>`_ (>= 20.0)
* `Pillow <https://pillow.readthedocs.io/en/latest/>`_ (>= 8.0)
* `pyparsing <https://pypi.org/project/pyparsing/>`_ (>= 2.3.1)
Expand Down Expand Up @@ -238,7 +238,7 @@ then you must manually install the following packages into your development envi
- `setuptools_scm <https://pypi.org/project/setuptools-scm/>`_ (>= 7). Used to
update the reported ``mpl.__version__`` based on the current git commit.
Also a runtime dependency for editable installs.
- `NumPy <https://numpy.org>`_ (>= 1.21). Also a runtime dependency.
- `NumPy <https://numpy.org>`_ (>= 1.22). Also a runtime dependency.


.. _compile-dependencies:
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements/testing/minver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down