1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-01 20:13:01 +00:00

move setuptools_scm configuration to pyproject.toml

This commit is contained in:
Thomas Waldmann 2023-12-23 22:57:53 +01:00
parent 94c37858d0
commit 5049817d43
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,10 @@
[build-system] [build-system]
requires = ["setuptools", "wheel", "pkgconfig", "Cython", "setuptools_scm>=1.7"] requires = ["setuptools", "wheel", "pkgconfig", "Cython", "setuptools_scm>=1.7"]
build-backend = "setuptools.build_meta" 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"

View file

@ -262,10 +262,6 @@ def members_appended(*ds):
# https://github.com/borgbackup/borg/issues/6875 # https://github.com/borgbackup/borg/issues/6875
setup( setup(
name='borgbackup', name='borgbackup',
use_scm_version={
'write_to': 'src/borg/_version.py',
'write_to_template': '__version__ = version = {version!r}\n',
},
author='The Borg Collective (see AUTHORS file)', author='The Borg Collective (see AUTHORS file)',
author_email='borgbackup@python.org', author_email='borgbackup@python.org',
url='https://borgbackup.readthedocs.io/', url='https://borgbackup.readthedocs.io/',