mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 13:45:31 +00:00
require/configure setuptools_scm via pyproject.toml
This commit is contained in:
parent
269b948284
commit
9642ace953
3 changed files with 5 additions and 7 deletions
|
@ -1,3 +1,6 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "pkgconfig", "Cython!=0.27"]
|
requires = ["setuptools", "pkgconfig", "Cython!=0.27", "setuptools_scm[toml]>=6.2"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.setuptools_scm]
|
||||||
|
write_to = "src/borg/_version.py"
|
||||||
|
|
|
@ -35,8 +35,6 @@ packages = find:
|
||||||
package_dir =
|
package_dir =
|
||||||
=src
|
=src
|
||||||
python_requires = >=3.9
|
python_requires = >=3.9
|
||||||
setup_requires =
|
|
||||||
setuptools_scm>=1.7
|
|
||||||
install_requires =
|
install_requires =
|
||||||
msgpack >=1.0.3, <=1.0.3
|
msgpack >=1.0.3, <=1.0.3
|
||||||
packaging
|
packaging
|
||||||
|
@ -66,7 +64,7 @@ console_scripts =
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
llfuse = llfuse >= 1.3.8
|
llfuse = llfuse >= 1.3.8
|
||||||
pyfuse3 = pyfuse3 >= 3.1.1
|
pyfuse3 = pyfuse3 >= 3.1.1
|
||||||
nofuse =
|
nofuse =
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
python_files = testsuite/*.py
|
python_files = testsuite/*.py
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -234,9 +234,6 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
use_scm_version={
|
|
||||||
'write_to': 'src/borg/_version.py',
|
|
||||||
},
|
|
||||||
cmdclass=cmdclass,
|
cmdclass=cmdclass,
|
||||||
ext_modules=ext_modules,
|
ext_modules=ext_modules,
|
||||||
long_description=setup_docs.long_desc_from_readme()
|
long_description=setup_docs.long_desc_from_readme()
|
||||||
|
|
Loading…
Reference in a new issue