Skip to content

Commit

Permalink
Pin setuptools_scm to <8
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pganssle committed Mar 1, 2024
1 parent db9d018 commit 9780d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -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"

Expand Down

0 comments on commit 9780d32

Please sign in to comment.