Browse Source

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.
Thomas Waldmann 2 weeks ago
parent
commit
0d2b866df8
2 changed files with 4 additions and 4 deletions
  1. 3 3
      pyproject.toml
  2. 1 1
      requirements.d/development.txt

+ 3 - 3
pyproject.toml

@@ -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]

+ 1 - 1
requirements.d/development.txt

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