mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-05 23:13:24 +00:00
Fix pyproject.toml to create a fixed _version.py file, compatible with both old and new setuptools_scm version (see: #6875)
This commit is contained in:
parent
907764e018
commit
ad8555e921
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
@ -257,11 +257,14 @@ def members_appended(*ds):
|
||||||
# generate C code from Cython for THIS platform (and for all platform-independent Cython parts).
|
# generate C code from Cython for THIS platform (and for all platform-independent Cython parts).
|
||||||
ext_modules = cythonize(ext_modules, **cython_opts)
|
ext_modules = cythonize(ext_modules, **cython_opts)
|
||||||
|
|
||||||
|
# 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
|
||||||
setup(
|
setup(
|
||||||
name='borgbackup',
|
name='borgbackup',
|
||||||
use_scm_version={
|
use_scm_version={
|
||||||
'write_to': 'src/borg/_version.py',
|
'write_to': 'src/borg/_version.py',
|
||||||
|
'write_to_template': '__version__ = version = {version!r} \n__version_tuple__ = version_tuple = {version_tuple!r}',
|
||||||
},
|
},
|
||||||
author='The Borg Collective (see AUTHORS file)',
|
author='The Borg Collective (see AUTHORS file)',
|
||||||
author_email='borgbackup@python.org',
|
author_email='borgbackup@python.org',
|
||||||
|
|
Loading…
Reference in a new issue