aa1745e
%global desc This module provides function decorators which can be used to wrap \
aa1745e
a function such that it will be retried until some condition is met. \
aa1745e
It is meant to be of use when accessing unreliable resources with the \
aa1745e
potential for intermittent failures i.e. network resources and external \
aa1745e
APIs. Somewhat more generally, it may also be of use for dynamically \
aa1745e
polling resources for externally generated content.
b4342e6
aa1745e
%global srcname backoff
aa1745e
aa1745e
aa1745e
Name:      python-%{srcname}
4214d6d
Version:   1.11.1
0554735
Release:   2%{?dist}
aa1745e
BuildArch: noarch
aa1745e
b4342e6
b4342e6
License:   MIT
b4342e6
Summary:   Python library providing function decorators for configurable backoff and retry
b4342e6
URL:       https://github.com/litl/%{srcname}
b4342e6
Source0:   %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
b4342e6
Patch0:    create_setup.patch
b4342e6
aa1745e
aa1745e
BuildRequires: python3-devel
aa1745e
BuildRequires: python3-pytest
b4342e6
BuildRequires: python3-setuptools
aa1745e
BuildRequires: python3-pytest-asyncio
aa1745e
aa1745e
aa1745e
%description
aa1745e
%{desc}
aa1745e
aa1745e
aa1745e
%package -n python3-%{srcname}
aa1745e
Summary: %{summary}
aa1745e
%{?python_provide:%python_provide python3-%{srcname}}
aa1745e
aa1745e
aa1745e
%description -n python3-%{srcname}
aa1745e
%{desc}
aa1745e
aa1745e
aa1745e
%prep
13b1513
%autosetup -p1 -n %{srcname}-%{version}
aa1745e
aa1745e
aa1745e
%build
aa1745e
%py3_build
aa1745e
aa1745e
aa1745e
%install
aa1745e
%py3_install
aa1745e
aa1745e
6b787d9
%check
6b787d9
py.test-3 tests
6b787d9
6b787d9
6b787d9
%files -n python3-%{srcname}
aa1745e
%license LICENSE
b4342e6
%doc CHANGELOG.md README.rst
b4342e6
%{python3_sitelib}/*
aa1745e
aa1745e
aa1745e
%changelog
0554735
* Tue Apr 25 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> - 1.11.1-2
0554735
- Keep python binnary as python3-backoff
0554735
4214d6d
* Wed Apr 19 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> - 1.11.1
4214d6d
- Downgrade to 1.11 since the backoff uses some features from python 3.7
4214d6d
b4342e6
* Sun Apr 16 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> - 2.2.1-1
4214d6d
- Upgrade to 2.2.1
b4342e6
b2d2cd7
* Thu Jun 20 2019 Troy Dawson <tdawson@redhat.com> - 1.6.0-2.1
b2d2cd7
- Turn off tests for initial EPEL8 build
b2d2cd7
2441221
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
2441221
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2441221
13b1513
* Mon Jul 30 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.6.0-1
13b1513
- Update to 1.6.0 (#1566766).
13b1513
- https://github.com/litl/backoff/blob/v1.6.0/CHANGELOG.md
13b1513
- Import a patch from an upstream pull request to solve a Python 3.7 compatibility issue (#1605610).
13b1513
1b826f1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-3
1b826f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1b826f1
8a62dd7
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.4.3-2
8a62dd7
- Rebuilt for Python 3.7
8a62dd7
aa1745e
* Thu Mar 08 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.4.3-1
aa1745e
- Initial release (#1553447).