Skip to content

Commit

Permalink
Fix pyproject.toml to create a fixed _version.py file, compatible wi…
Browse files Browse the repository at this point in the history
…th both old and new setuptools_scm version (see: #6875)
  • Loading branch information
Gianfranco Costamagna committed Jul 18, 2022
1 parent 2418795 commit a92c156
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ requires = ["setuptools", "pkgconfig", "Cython", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
# make sure we have the same versioning scheme with all setuptools_scm versions, to avoid different autogenerated files
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015052
# https://github.com/borgbackup/borg/issues/6875
write_to = "src/borg/_version.py"
write_to_template = "__version__ = version = {version!r} \n__version_tuple__ = version_tuple = {version_tuple!r}"

0 comments on commit a92c156

Please sign in to comment.