Fix build failure caused by setuptools upgrade

This commit is contained in:
lyn1001 2024-03-05 10:13:38 +08:00
parent 2ec031e4dd
commit 8b1e0c687b
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