forked from pool/python-retry
- Switch to pyproject macros.
- No more greedy globs in %files. - Remove unneeded dependency on pylib. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-retry?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 4 02:26:12 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
- Remove unneeded dependency on pylib.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 8 07:59:30 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-retry
|
||||
#
|
||||
# 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,28 +16,24 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-retry
|
||||
Version: 0.9.2
|
||||
Release: 0
|
||||
Summary: Python retry decorator
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/invl/retry
|
||||
Source: https://files.pythonhosted.org/packages/source/r/retry/retry-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module decorator >= 3.4.2}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module py >= 1.4.26}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-decorator >= 3.4.2
|
||||
Requires: python-py >= 1.4.26
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -48,12 +44,13 @@ Easy to use retry decorator.
|
||||
%prep
|
||||
%setup -q -n retry-%{version}
|
||||
sed -i '/tox/d;/wheel/d' test-requirements.txt
|
||||
sed -i '/py\>/d' requirements.txt
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -62,6 +59,7 @@ sed -i '/tox/d;/wheel/d' test-requirements.txt
|
||||
%files %{python_files}
|
||||
%doc AUTHORS ChangeLog README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/retry
|
||||
%{python_sitelib}/retry-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user