summaryrefslogtreecommitdiff
path: root/fix-pyproject-license.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix-pyproject-license.patch')
-rw-r--r--fix-pyproject-license.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/fix-pyproject-license.patch b/fix-pyproject-license.patch
new file mode 100644
index 0000000..2c267e4
--- /dev/null
+++ b/fix-pyproject-license.patch
@@ -0,0 +1,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",