From 434dd0762587b485ec8d0ef966443131b98d3cc3 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 8 Oct 2024 11:17:02 -0400 Subject: [PATCH] MNT: Update packaging to accommodate matplotlib --- doc/source/installation.rst | 2 +- pyproject.toml | 4 ++-- tox.ini | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/source/installation.rst b/doc/source/installation.rst index dd8d6d008..983968c50 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -85,7 +85,7 @@ Requirements * Python_ 3.9 or greater * NumPy_ 1.22 or greater -* Packaging_ 17.0 or greater +* Packaging_ 20.0 or greater * importlib-resources_ 5.12 or greater (or Python 3.12+) * SciPy_ 1.8 or greater (optional, for full SPM-ANALYZE support) * h5py_ 3.5 or greater (optional, for MINC2 support) diff --git a/pyproject.toml b/pyproject.toml index e4c96d013..b62c0048a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ license = { text = "MIT License" } requires-python = ">=3.9" dependencies = [ "numpy >=1.22", - "packaging >=17", + "packaging >=20", "importlib_resources >=5.12; python_version < '3.12'", "typing_extensions >=4.6; python_version < '3.13'", ] @@ -62,7 +62,7 @@ zstd = ["pyzstd >= 0.14.3"] # tox should use these with extras instead of duplicating doc = [ "sphinx", - "matplotlib>=1.5.3", + "matplotlib>=3.5", "numpydoc", "texext", "tomli; python_version < '3.11'", diff --git a/tox.ini b/tox.ini index e1acbe91f..82c13debc 100644 --- a/tox.ini +++ b/tox.ini @@ -75,7 +75,8 @@ set_env = extras = test deps = # General minimum dependencies: pin based on API usage - min: packaging ==17 + # matplotlib 3.5 requires packaging 20 + min: packaging ==20 min: importlib_resources ==5.12; python_version < '3.12' min: typing_extensions ==4.6; python_version < '3.13' # NEP29/SPEC0 + 1yr: Test on minor release series within the last 3 years