From 8b1e0c687b6cda056eb5c8b0e11a65cc41fb17fd Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Tue, 5 Mar 2024 10:13:38 +0800 Subject: [PATCH] Fix build failure caused by setuptools upgrade --- 0001-setuptools-fix.patch | 21 +++++++++++++++++++++ python-autocommand.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 0001-setuptools-fix.patch diff --git a/0001-setuptools-fix.patch b/0001-setuptools-fix.patch new file mode 100644 index 0000000..d07f37e --- /dev/null +++ b/0001-setuptools-fix.patch @@ -0,0 +1,21 @@ +From cf98b8bc024f536565a67369a9f9a506fe67b942 Mon Sep 17 00:00:00 2001 +From: Ben Greiner +Date: Fri, 22 Dec 2023 14:15:46 +0100 +Subject: [PATCH] License is dynamic + +--- + pyproject.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pyproject.toml b/pyproject.toml +index aa30b35..5221f65 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -18,6 +18,7 @@ classifiers = [ + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Libraries :: Python Modules", + ] ++dynamic = [ "license" ] + + [project.urls] + "Homepage" = "https://github.com/Lucretiel/autocommand" diff --git a/python-autocommand.spec b/python-autocommand.spec index 217229f..31908ff 100644 --- a/python-autocommand.spec +++ b/python-autocommand.spec @@ -5,11 +5,12 @@ called as __main__. In effect, it lets your create a smart main function.} Name: python-autocommand Version: 2.2.2 -Release: 1 +Release: 2 Summary: A library to automatically generate and run simple argparse parsers from function signatures. License: LGPL-3.0-only URL: https://github.com/Lucretiel/autocommand Source0: https://github.com/Lucretiel/autocommand/archive/%{version}/autocommand-%{version}.tar.gz +Patch0: 0001-setuptools-fix.patch BuildRequires: python3-devel BuildRequires: python3-pytest @@ -43,5 +44,8 @@ pytest %{python3_sitelib}/* %changelog +* Tue Mar 5 2024 liyanan - 2.2.2-2 +- Fix build failure caused by setuptools upgrade + * Fri Apr 28 2023 yaoxin - 2.2.2-1 - Package init