From 9780d32aea9ab681769671c4e3540b449d62cdd0 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Fri, 1 Mar 2024 09:14:11 -0500 Subject: [PATCH] Pin `setuptools_scm` to <8 There are some breaking changes, and this is making it so that the `_version.py` file generated is not compatible with Python 2 anymore. I don't see an obvious or easy way to figure out what version of `setuptools_scm` is in use, so we'll just pin the version for now. I recommend removing `setuptools_scm` entirely in the future. --- changelog.d/1346.bugfix.rst | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/1346.bugfix.rst diff --git a/changelog.d/1346.bugfix.rst b/changelog.d/1346.bugfix.rst new file mode 100644 index 000000000..96f0917e2 --- /dev/null +++ b/changelog.d/1346.bugfix.rst @@ -0,0 +1 @@ +Pinned ``setuptools_scm`` to ``<8``, which should make the generated ``_version.py`` file compatible with all supported versions of Python. diff --git a/pyproject.toml b/pyproject.toml index 67ad619fc..b60971760 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = [ "setuptools; python_version != '3.3'", "setuptools<40.0; python_version == '3.3'", "wheel", - "setuptools_scm" + "setuptools_scm<8.0" ] build-backend = "setuptools.build_meta"