diff --git a/pyproject.toml b/pyproject.toml index cda60db81..0ab3879e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ [build-system] -requires = ["setuptools", "pkgconfig", "Cython!=0.27"] +requires = ["setuptools", "pkgconfig", "Cython!=0.27", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +write_to = "src/borg/_version.py" diff --git a/setup.cfg b/setup.cfg index 16886a7e2..00239aa8d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,8 +35,6 @@ packages = find: package_dir = =src python_requires = >=3.9 -setup_requires = - setuptools_scm>=1.7 install_requires = msgpack >=1.0.3, <=1.0.3 packaging @@ -66,7 +64,7 @@ console_scripts = [options.extras_require] llfuse = llfuse >= 1.3.8 pyfuse3 = pyfuse3 >= 3.1.1 -nofuse = +nofuse = [tool:pytest] python_files = testsuite/*.py diff --git a/setup.py b/setup.py index 169a4f02b..537385b70 100644 --- a/setup.py +++ b/setup.py @@ -234,9 +234,6 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s setup( - use_scm_version={ - 'write_to': 'src/borg/_version.py', - }, cmdclass=cmdclass, ext_modules=ext_modules, long_description=setup_docs.long_desc_from_readme()