!2 Fix build failure caused by setuptools upgrade

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-03-05 06:06:03 +00:00 committed by Gitee
commit 740af49f0a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 26 additions and 1 deletions

21
0001-setuptools-fix.patch Normal file
View File

@ -0,0 +1,21 @@
From cf98b8bc024f536565a67369a9f9a506fe67b942 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
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"

View File

@ -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 <liyanan61@h-partners.com> - 2.2.2-2
- Fix build failure caused by setuptools upgrade
* Fri Apr 28 2023 yaoxin <yao_xin001@hoperun.com> - 2.2.2-1
- Package init