Merge pull request #26849 from ksunden/setuptools_scm_8 · matplotlib/matplotlib@a36e6e2 · GitHub
Skip to content

Commit a36e6e2

Browse files
authored
Merge pull request #26849 from ksunden/setuptools_scm_8
Bump setuptools required version because of setuptools_scm v8
2 parents 2cbdff8 + c70a52e commit a36e6e2

5 files changed

Lines changed: 19 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions

doc/devel/dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Setup dependencies
228228
runtime dependency.
229229
- `PyBind11 <https://pypi.org/project/pybind11/>`_ (>= 2.6). Used to connect C/C++ code
230230
with Python.
231-
- `setuptools <https://pypi.org/project/setuptools/>`_ (>= 42).
231+
- `setuptools <https://pypi.org/project/setuptools/>`_ (>= 64).
232232
- `setuptools_scm <https://pypi.org/project/setuptools-scm/>`_ (>= 7). Used to
233233
update the reported ``mpl.__version__`` based on the current git commit.
234234
Also a runtime dependency for editable installs.

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ requires = [
44
"certifi>=2020.06.20",
55
"numpy>=1.25",
66
"pybind11>=2.6",
7-
"setuptools>=42",
7+
"setuptools>=64",
88
"setuptools_scm>=7",
99
]
1010

11+
[tool.setuptools_scm]
12+
version_scheme = "release-branch-semver"
13+
local_scheme = "node-and-date"
14+
write_to = "lib/matplotlib/_version.py"
15+
parentdir_prefix_version = "matplotlib-"
16+
fallback_version = "0.0+UNKNOWN"
17+
1118
[tool.isort]
1219
known_pydata = "numpy, matplotlib.pyplot"
1320
known_firstparty = "matplotlib,mpl_toolkits"

requirements/testing/mypy.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ pillow>=8
2424
pyparsing>=2.3.1
2525
python-dateutil>=2.7
2626
setuptools_scm>=7
27+
setuptools>=64
2728

2829
importlib-resources>=3.2.0 ; python_version < "3.10"

setup.py

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)