85a06fc
%global desc This module provides function decorators which can be used to wrap \
85a06fc
a function such that it will be retried until some condition is met. \
85a06fc
It is meant to be of use when accessing unreliable resources with the \
85a06fc
potential for intermittent failures i.e. network resources and external \
85a06fc
APIs. Somewhat more generally, it may also be of use for dynamically \
85a06fc
polling resources for externally generated content.
85a06fc
%global srcname backoff
85a06fc
85a06fc
Name:      python-%{srcname}
af28b24
Version:   2.2.1
85a06fc
Release:   1%{?dist}
85a06fc
BuildArch: noarch
85a06fc
85a06fc
License: MIT
85a06fc
Summary: Python library providing function decorators for configurable backoff and retry
af28b24
URL:     https://github.com/litl/backoff
85a06fc
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
85a06fc
af28b24
BuildRequires: pyproject-rpm-macros
85a06fc
85a06fc
%description
85a06fc
%{desc}
85a06fc
85a06fc
%package -n python3-%{srcname}
85a06fc
Summary: %{summary}
85a06fc
%{?python_provide:%python_provide python3-%{srcname}}
85a06fc
85a06fc
%description -n python3-%{srcname}
85a06fc
%{desc}
85a06fc
85a06fc
%prep
85a06fc
%autosetup -p1 -n %{srcname}-%{version}
85a06fc
af28b24
%generate_buildrequires
af28b24
%pyproject_buildrequires
85a06fc
85a06fc
%build
af28b24
%pyproject_wheel
85a06fc
85a06fc
%install
af28b24
%pyproject_install
85a06fc
85a06fc
%files -n python3-%{srcname}
85a06fc
%license LICENSE
af28b24
%doc CHANGELOG.md README.rst
af28b24
%{python3_sitelib}/%{srcname}/
af28b24
%{python3_sitelib}/%{srcname}-*.dist-info/
85a06fc
85a06fc
85a06fc
%changelog
af28b24
* Fri Mar 24 2023 Jiri Kyjovsky <jkyjovsk@redhat.com> - 2.2.1-1
af28b24
- Update package to 2.2.1
af28b24
85a06fc
* Mon Jan 16 2023 Jiri Kyjovsky <jkyjovsk@redhat.com> - 1.6.0-1
85a06fc
- Initial EPEL9 release