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:
parent
94c37858d0
commit
5049817d43
2 changed files with 7 additions and 4 deletions
|
@ -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"
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -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/',
|
||||||
|
|
Loading…
Reference in a new issue