From ccb6c6cfb48d8a245868857372e35d20daa2634d4f334189c161415fe6ef99b8 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 22 Dec 2023 14:20:12 +0000 Subject: [PATCH] Accepting request 1134628 from home:bnavigator:branches:devel:languages:python - Add setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31 - Build PEP517 OBS-URL: https://build.opensuse.org/request/show/1134628 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autocommand?expand=0&rev=7 --- python-autocommand.changes | 6 ++++++ python-autocommand.spec | 10 +++++++--- setuptools-dynamic-license.patch | 12 ++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 setuptools-dynamic-license.patch diff --git a/python-autocommand.changes b/python-autocommand.changes index afbf30e..97bb507 100644 --- a/python-autocommand.changes +++ b/python-autocommand.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 22 13:12:16 UTC 2023 - Ben Greiner + +- Add setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31 +- Build PEP517 + ------------------------------------------------------------------- Fri Apr 21 12:22:25 UTC 2023 - Dirk Müller diff --git a/python-autocommand.spec b/python-autocommand.spec index 279c444..97a6590 100644 --- a/python-autocommand.spec +++ b/python-autocommand.spec @@ -24,9 +24,13 @@ Summary: A library to create a command-line program from a function License: LGPL-3.0-only URL: https://github.com/Lucretiel/autocommand Source: https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-%{version}.tar.gz +# PATCH-FIX-UPSTREAM setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31 +Patch0: setuptools-dynamic-license.patch BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +45,10 @@ called as __main__. In effect, it lets your create a smart main function. %autosetup -p1 -n autocommand-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,6 +58,6 @@ called as __main__. In effect, it lets your create a smart main function. %license LICENSE %doc README.md %{python_sitelib}/autocommand -%{python_sitelib}/autocommand-%{version}*-info +%{python_sitelib}/autocommand-%{version}.dist-info %changelog diff --git a/setuptools-dynamic-license.patch b/setuptools-dynamic-license.patch new file mode 100644 index 0000000..ac32af4 --- /dev/null +++ b/setuptools-dynamic-license.patch @@ -0,0 +1,12 @@ +diff -ur autocommand-2.2.2.orig/pyproject.toml autocommand-2.2.2/pyproject.toml +--- autocommand-2.2.2.orig/pyproject.toml 2023-12-22 14:09:47.546319795 +0100 ++++ autocommand-2.2.2/pyproject.toml 2023-12-22 14:11:30.299252276 +0100 +@@ -18,6 +18,8 @@ + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Libraries :: Python Modules", + ] ++dynamic = [ "license" ] ++ + + [project.urls] + "Homepage" = "https://github.com/Lucretiel/autocommand"