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.
aa1745e
%global srcname backoff
aa1745e
aa1745e
aa1745e
Name:      python-%{srcname}
13b1513
Version:   1.6.0
49ff317
Release:   6%{?dist}
aa1745e
BuildArch: noarch
aa1745e
aa1745e
License: MIT
aa1745e
Summary: Python library providing function decorators for configurable backoff and retry
aa1745e
URL:     https://github.com/litl/%{srcname}
aa1745e
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
13b1513
# https://github.com/litl/backoff/issues/56
13b1513
# Patch from https://github.com/litl/backoff/pull/55
13b1513
Patch0:  0000-Drop-support-for-Python-3.4-to-support-aiohttp-3.3.patch
aa1745e
aa1745e
BuildRequires: python3-devel
aa1745e
BuildRequires: python3-pytest
aa1745e
BuildRequires: python3-pytest-asyncio
aa1745e
aa1745e
aa1745e
%description
aa1745e
%{desc}
aa1745e
aa1745e
aa1745e
%package -n python3-%{srcname}
aa1745e
Summary: %{summary}
aa1745e
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
aa1745e
%check
aa1745e
py.test-3 tests
aa1745e
aa1745e
aa1745e
%files -n python3-%{srcname}
aa1745e
%license LICENSE
aa1745e
%doc CHANGELOG.md
aa1745e
%doc README.rst
aa1745e
%{python3_sitelib}/%{srcname}
aa1745e
%{python3_sitelib}/*.egg-info
aa1745e
aa1745e
aa1745e
%changelog
49ff317
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-6
49ff317
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
49ff317
32174e7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-5
32174e7
- Rebuilt for Python 3.8.0rc1 (#1748018)
32174e7
7d14d6b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-4
7d14d6b
- Rebuilt for Python 3.8
7d14d6b
827ccac
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
827ccac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
827ccac
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).