Skip to content

Commit

Permalink
Bump minimum NumPy to 1.17.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Apr 19, 2021
1 parent a1a4233 commit aa500f5
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -150,7 +150,7 @@ jobs:
- pip-install

- deps-install:
numpy_version: "==1.16.0"
numpy_version: "==1.17.3"
- mpl-install

- doc-build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cibuildwheel.yml
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
min-numpy-version: "1.16.0"
min-numpy-hash: "04/b6/d7faa70a3e3eac39f943cc6a6a64ce378259677de516bd899dd9eb8f9b32"
min-numpy-version: "1.17.0"
min-numpy-hash: "da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da"
strategy:
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
Expand Down
15 changes: 15 additions & 0 deletions doc/api/next_api_changes/development/20003-ES.rst
@@ -0,0 +1,15 @@
Increase to minimum supported versions of dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For Maptlotlib 3.5, the :ref:`minimum supported versions <dependencies>` are
being bumped:

+------------+-----------------+---------------+
| Dependency | min in mpl3.4 | min in mpl3.5 |
+============+=================+===============+
| NumPy | 1.16 | 1.17 |
+------------+-----------------+---------------+

This is consistent with our :ref:`min_deps_policy` and `NEP29
<https://numpy.org/neps/nep-0029-deprecation_policy.html>`__

2 changes: 1 addition & 1 deletion doc/devel/dependencies.rst
Expand Up @@ -12,7 +12,7 @@ mandatory dependencies are automatically installed. This list is mainly for
reference.

* `Python <https://www.python.org/downloads/>`_ (>= 3.7)
* `NumPy <https://numpy.org>`_ (>= 1.16)
* `NumPy <https://numpy.org>`_ (>= 1.17)
* `setuptools <https://setuptools.readthedocs.io/en/latest/>`_
* `cycler <https://matplotlib.org/cycler/>`_ (>= 0.10.0)
* `dateutil <https://pypi.org/project/python-dateutil>`_ (>= 2.7)
Expand Down
4 changes: 3 additions & 1 deletion doc/devel/min_dep_policy.rst
Expand Up @@ -83,7 +83,8 @@ specification of the dependencies.
========== ======== ======
Matplotlib Python NumPy
========== ======== ======
3.4 3.7 1.16.0
3.5 3.7 1.17.0
`3.4`_ 3.7 1.16.0
`3.3`_ 3.6 1.15.0
`3.2`_ 3.6 1.11.0
`3.1`_ 3.6 1.11.0
Expand All @@ -99,6 +100,7 @@ Matplotlib Python NumPy
1.0 2.4 1.1
========== ======== ======

.. _`3.4`: https://matplotlib.org/3.4.0/users/installing.html#dependencies
.. _`3.3`: https://matplotlib.org/3.3.0/users/installing.html#dependencies
.. _`3.2`: https://matplotlib.org/3.2.0/users/installing.html#dependencies
.. _`3.1`: https://matplotlib.org/3.1.0/users/installing.html#dependencies
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/__init__.py
Expand Up @@ -161,7 +161,7 @@ def _check_versions():
("cycler", "0.10"),
("dateutil", "2.7"),
("kiwisolver", "1.0.1"),
("numpy", "1.16"),
("numpy", "1.17"),
("pyparsing", "2.2.1"),
]:
module = importlib.import_module(modname)
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Expand Up @@ -1009,7 +1009,7 @@ def test_fill_between_interpolate_nan():
y1 = np.asarray([8, 18, np.nan, 18, 8, 18, 24, 18, 8, 18])
y2 = np.asarray([18, 11, 8, 11, 18, 26, 32, 30, np.nan, np.nan])

# numpy 1.16 issues warning 'invalid value encountered in greater_equal'
# NumPy <1.19 issues warning 'invalid value encountered in greater_equal'
# for comparisons that include nan.
with np.errstate(invalid='ignore'):
greater2 = y2 >= y1
Expand Down
2 changes: 1 addition & 1 deletion requirements/testing/minver.txt
Expand Up @@ -2,7 +2,7 @@

cycler==0.10
kiwisolver==1.0.1
numpy==1.16.0
numpy==1.17.0
pillow==6.2.0
pyparsing==2.2.1
python-dateutil==2.7
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -305,14 +305,14 @@ def make_release_tree(self, base_dir, files):
python_requires='>={}'.format('.'.join(str(n) for n in py_min_version)),
setup_requires=[
"certifi>=2020.06.20",
"numpy>=1.16",
"numpy>=1.17",
"setuptools_scm>=4",
"setuptools_scm_git_archive",
],
install_requires=[
"cycler>=0.10",
"kiwisolver>=1.0.1",
"numpy>=1.16",
"numpy>=1.17",
"pillow>=6.2.0",
"pyparsing>=2.2.1",
"python-dateutil>=2.7",
Expand Down

0 comments on commit aa500f5

Please sign in to comment.