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
This commit is contained in:
Daniel Garcia 2023-12-22 14:20:12 +00:00 committed by Git OBS Bridge
parent 9a00f6c0d7
commit ccb6c6cfb4
3 changed files with 25 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 22 13:12:16 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Add setuptools-dynamic-license.patch gh#Lucretiel/autocommand#31
- Build PEP517
-------------------------------------------------------------------
Fri Apr 21 12:22:25 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -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

View File

@ -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"