forked from pool/python-delegator.py
Accepting request 1153076 from devel:languages:python
- Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1153076 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-delegator.py?expand=0&rev=4
This commit is contained in:
commit
d97b4b7f32
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 29 03:13:06 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 23 09:43:15 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
Sun Oct 23 09:43:15 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-delegator.py
|
# spec file for package python-delegator.py
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,20 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-delegator.py
|
Name: python-delegator.py
|
||||||
Version: 0.1.1
|
Version: 0.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library for dealing with subprocesses
|
Summary: Python library for dealing with subprocesses
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/kennethreitz/delegator.py
|
URL: https://github.com/kennethreitz/delegator.py
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/delegator.py/delegator.py-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/delegator.py/delegator.py-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/kennethreitz/delegator.py/master/tests/test_chain.py
|
Source1: https://raw.githubusercontent.com/kennethreitz/delegator.py/master/tests/test_chain.py
|
||||||
Patch0: merged_pr_62.patch
|
Patch0: merged_pr_62.patch
|
||||||
BuildRequires: %{python_module pexpect >= 4.1.0}
|
BuildRequires: %{python_module pexpect >= 4.1.0}
|
||||||
|
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
|
||||||
Requires: python-pexpect >= 4.1.0
|
Requires: python-pexpect >= 4.1.0
|
||||||
@ -43,15 +43,14 @@ Delegator.py is a library for dealing with subprocesses, inspired
|
|||||||
by both "envoy" and "pexpect" (in fact, it depends on it).
|
by both "envoy" and "pexpect" (in fact, it depends on it).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n delegator.py-%{version}
|
%autosetup -p1 -n delegator.py-%{version}
|
||||||
%patch0 -p1
|
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
# Tests from master are not compatible. Likely fixed in next release.
|
# Tests from master are not compatible. Likely fixed in next release.
|
||||||
@ -63,6 +62,8 @@ cp %{SOURCE1} .
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/delegator.py
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/delegator.*.py*
|
||||||
|
%{python_sitelib}/delegator.py-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user