pyproject.toml: SPDX expression for license, add license-files, see #8771

Also: raise setuptools version requirement appropriately.

In case the setuptools requirement turns out to be a problem when
packaging borg for some OS distribution and an older setuptools must
be used, just do a reverse patch when packaging borg - there should
be no problem as long as you use some older setuptools.
This commit is contained in:
Thomas Waldmann 2025-08-08 17:20:12 +02:00
parent 28bcefded8
commit 0d2b866df8
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,6 @@ classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Operating System :: POSIX :: BSD :: OpenBSD",
"Operating System :: POSIX :: BSD :: NetBSD",
@ -29,7 +28,8 @@ classifiers = [
"Topic :: Security :: Cryptography",
"Topic :: System :: Archiving :: Backup",
]
license = {text="BSD"}
license = "BSD-3-Clause"
license-files = ["LICENSE", "AUTHORS"]
dependencies = [
# we are rather picky about msgpack versions, because a good working msgpack is
# very important for borg, see: https://github.com/borgbackup/borg/issues/3753
@ -73,7 +73,7 @@ where = ["src"]
"*" = ["*.c", "*.h", "*.pyx"]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel", "pkgconfig", "Cython>=3.0.3"]
requires = ["setuptools>=77.0.0", "setuptools_scm>=8", "wheel", "pkgconfig", "Cython>=3.0.3"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]

View file

@ -1,4 +1,4 @@
setuptools>=64
setuptools>=77.0.0
setuptools_scm>=8
pip
virtualenv