aa1745
%global desc This module provides function decorators which can be used to wrap \
aa1745
a function such that it will be retried until some condition is met. \
aa1745
It is meant to be of use when accessing unreliable resources with the \
aa1745
potential for intermittent failures i.e. network resources and external \
aa1745
APIs. Somewhat more generally, it may also be of use for dynamically \
aa1745
polling resources for externally generated content.
aa1745
%global srcname backoff
aa1745
aa1745
aa1745
Name:      python-%{srcname}
13b151
Version:   1.6.0
244122
Release:   2%{?dist}
aa1745
BuildArch: noarch
aa1745
aa1745
License: MIT
aa1745
Summary: Python library providing function decorators for configurable backoff and retry
aa1745
URL:     https://github.com/litl/%{srcname}
aa1745
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
13b151
# https://github.com/litl/backoff/issues/56
13b151
# Patch from https://github.com/litl/backoff/pull/55
13b151
Patch0:  0000-Drop-support-for-Python-3.4-to-support-aiohttp-3.3.patch
aa1745
aa1745
BuildRequires: python3-devel
aa1745
BuildRequires: python3-pytest
aa1745
BuildRequires: python3-pytest-asyncio
aa1745
aa1745
aa1745
%description
aa1745
%{desc}
aa1745
aa1745
aa1745
%package -n python3-%{srcname}
aa1745
Summary: %{summary}
aa1745
aa1745
%{?python_provide:%python_provide python3-%{srcname}}
aa1745
aa1745
aa1745
%description -n python3-%{srcname}
aa1745
%{desc}
aa1745
aa1745
aa1745
%prep
13b151
%autosetup -p1 -n %{srcname}-%{version}
aa1745
aa1745
aa1745
%build
aa1745
%py3_build
aa1745
aa1745
aa1745
%install
aa1745
%py3_install
aa1745
aa1745
aa1745
%check
aa1745
py.test-3 tests
aa1745
aa1745
aa1745
%files -n python3-%{srcname}
aa1745
%license LICENSE
aa1745
%doc CHANGELOG.md
aa1745
%doc README.rst
aa1745
%{python3_sitelib}/%{srcname}
aa1745
%{python3_sitelib}/*.egg-info
aa1745
aa1745
aa1745
%changelog
244122
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
244122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
244122
13b151
* Mon Jul 30 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.6.0-1
13b151
- Update to 1.6.0 (#1566766).
13b151
- https://github.com/litl/backoff/blob/v1.6.0/CHANGELOG.md
13b151
- Import a patch from an upstream pull request to solve a Python 3.7 compatibility issue (#1605610).
13b151
1b826f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-3
1b826f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1b826f
8a62dd
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-2
8a62dd
- Rebuilt for Python 3.7
8a62dd
aa1745
* Thu Mar 08 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.4.3-1
aa1745
- Initial release (#1553447).