Accepting request 1134635 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1134635 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autocommand?expand=0&rev=4
This commit is contained in:
commit
8ebbf945d1
@ -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>
|
Fri Apr 21 12:22:25 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -24,9 +24,13 @@ Summary: A library to create a command-line program from a function
|
|||||||
License: LGPL-3.0-only
|
License: LGPL-3.0-only
|
||||||
URL: https://github.com/Lucretiel/autocommand
|
URL: https://github.com/Lucretiel/autocommand
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-%{version}.tar.gz
|
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 base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -41,10 +45,10 @@ called as __main__. In effect, it lets your create a smart main function.
|
|||||||
%autosetup -p1 -n autocommand-%{version}
|
%autosetup -p1 -n autocommand-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -54,6 +58,6 @@ called as __main__. In effect, it lets your create a smart main function.
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/autocommand
|
%{python_sitelib}/autocommand
|
||||||
%{python_sitelib}/autocommand-%{version}*-info
|
%{python_sitelib}/autocommand-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
12
setuptools-dynamic-license.patch
Normal file
12
setuptools-dynamic-license.patch
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user