Skip to content

Commit

Permalink
Merge pull request #6876 from LocutusOfBorg/fix-template
Browse files Browse the repository at this point in the history
 Fix pyproject.toml to create a fixed _version.py file, compatible wi…
  • Loading branch information
ThomasWaldmann authored Jul 18, 2022
2 parents 2418795 + a92c156 commit b52781a
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 b52781a

Please sign in to comment.