From 5c63e65c6c4da19f932249ac7c943f80fa6448df19ed3397b862eb7141036531 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 29 Feb 2024 03:13:42 +0000 Subject: [PATCH] - Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-delegator.py?expand=0&rev=9 --- python-delegator.py.changes | 6 ++++++ python-delegator.py.spec | 17 +++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/python-delegator.py.changes b/python-delegator.py.changes index a52b7da..f75856b 100644 --- a/python-delegator.py.changes +++ b/python-delegator.py.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 29 03:13:06 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sun Oct 23 09:43:15 UTC 2022 - John Vandenberg diff --git a/python-delegator.py.spec b/python-delegator.py.spec index 868873d..72d0f41 100644 --- a/python-delegator.py.spec +++ b/python-delegator.py.spec @@ -1,7 +1,7 @@ # # 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 # 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 Version: 0.1.1 Release: 0 Summary: Python library for dealing with subprocesses License: MIT -Group: Development/Languages/Python URL: https://github.com/kennethreitz/delegator.py 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 Patch0: merged_pr_62.patch BuildRequires: %{python_module pexpect >= 4.1.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros 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). %prep -%setup -q -n delegator.py-%{version} -%patch0 -p1 +%autosetup -p1 -n delegator.py-%{version} cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # Tests from master are not compatible. Likely fixed in next release. @@ -63,6 +62,8 @@ cp %{SOURCE1} . %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/delegator.py +%pycache_only %{python_sitelib}/__pycache__/delegator.*.py* +%{python_sitelib}/delegator.py-%{version}.dist-info %changelog