summaryrefslogtreecommitdiff
path: root/fix-pyproject-license.patch
blob: 2c267e42b0593cf0b5b7d775a564d84a9b571f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Convert PEP 639 SPDX license string form to PEP 621 table form
 cmd2 4.3.1 pyproject.toml uses `license = "MIT"` (PEP 639 SPDX string) and
 `license-files = ["LICENSE"]`, which require setuptools >= 77.0.0.
 The openEuler 24.03 LTS SP4 chroot ships setuptools 68.0.0, which only
 supports the older PEP 621 table form `license = {text = "..."}`.
 This patch converts the license declaration so metadata generation
 succeeds under the available setuptools, without upgrading the toolchain.

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,8 +10,7 @@
 readme = "README.md"
 requires-python = ">=3.11"
 keywords = ["CLI", "cmd", "command", "interactive", "prompt", "Python"]
-license = "MIT"
-license-files = ["LICENSE"]
+license = {text = "MIT"}
 classifiers = [
     "Development Status :: 5 - Production/Stable",
     "Environment :: Console",