|
|
e7b75f |
%{?python_enable_dependency_generator}
|
|
|
e7b75f |
%global pypi_name tenacity
|
|
|
e7b75f |
%global common_desc Tenacity is a general purpose retrying library
|
|
|
e7b75f |
|
|
|
e7b75f |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
e7b75f |
%bcond_with python2
|
|
|
e7b75f |
%bcond_without python3
|
|
|
e7b75f |
%else
|
|
|
e7b75f |
%bcond_without python2
|
|
|
e7b75f |
%bcond_with python3
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
Name: python-%{pypi_name}
|
|
|
e7b75f |
Version: 6.3.1
|
|
|
e7b75f |
Release: 1%{?dist}
|
|
|
e7b75f |
Summary: %{common_desc}
|
|
|
e7b75f |
License: ASL 2.0
|
|
|
e7b75f |
URL: https://github.com/jd/%{pypi_name}
|
|
|
e7b75f |
Source0: %{pypi_source}
|
|
|
e7b75f |
BuildArch: noarch
|
|
|
e7b75f |
|
|
|
e7b75f |
%if %{with python2}
|
|
|
e7b75f |
%package -n python2-%{pypi_name}
|
|
|
e7b75f |
Summary: %{common_desc}
|
|
|
e7b75f |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
e7b75f |
|
|
|
e7b75f |
BuildRequires: python2-setuptools
|
|
|
e7b75f |
BuildRequires: python2-setuptools_scm
|
|
|
e7b75f |
BuildRequires: python2-devel
|
|
|
e7b75f |
BuildRequires: python2-pbr
|
|
|
e7b75f |
BuildRequires: python2-six >= 1.9.0
|
|
|
e7b75f |
BuildRequires: python2-futures >= 3.0
|
|
|
e7b75f |
BuildRequires: python2-monotonic >= 0.6
|
|
|
e7b75f |
BuildRequires: python2-tornado >= 4.5
|
|
|
e7b75f |
BuildRequires: python2-pytest
|
|
|
e7b75f |
%if %{undefined __pythondist_requires}
|
|
|
e7b75f |
Requires: python2-six >= 1.9.0
|
|
|
e7b75f |
Requires: python2-futures >= 3.0
|
|
|
e7b75f |
Requires: python2-monotonic >= 0.6
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%description -n python2-%{pypi_name}
|
|
|
e7b75f |
%{common_desc}
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%if %{with python3}
|
|
|
e7b75f |
%package -n python3-%{pypi_name}
|
|
|
e7b75f |
|
|
|
e7b75f |
Summary: %{common_desc}
|
|
|
e7b75f |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
e7b75f |
|
|
|
e7b75f |
BuildRequires: python3-setuptools
|
|
|
e7b75f |
BuildRequires: python3-setuptools_scm
|
|
|
e7b75f |
BuildRequires: python3-devel
|
|
|
e7b75f |
BuildRequires: python3-pbr
|
|
|
e7b75f |
BuildRequires: python3-six >= 1.9.0
|
|
|
e7b75f |
BuildRequires: python3-tornado >= 4.5
|
|
|
e7b75f |
BuildRequires: python3-pytest
|
|
|
e7b75f |
BuildRequires: python3-typeguard
|
|
|
e7b75f |
%if %{undefined __pythondist_requires}
|
|
|
e7b75f |
Requires: python3-six >= 1.9.0
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%description -n python3-%{pypi_name}
|
|
|
e7b75f |
Tenacity is a general-purpose retrying library, written in Python, to simplify
|
|
|
e7b75f |
the task of adding retry behavior to just about anything. It originates from a
|
|
|
e7b75f |
fork of Retrying.
|
|
|
e7b75f |
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%description
|
|
|
e7b75f |
Tenacity is a general-purpose retrying library, written in Python, to simplify
|
|
|
e7b75f |
the task of adding retry behavior to just about anything. It originates from a
|
|
|
e7b75f |
fork of Retrying.
|
|
|
e7b75f |
|
|
|
e7b75f |
%prep
|
|
|
e7b75f |
%autosetup -n %{pypi_name}-%{version}
|
|
|
e7b75f |
|
|
|
e7b75f |
%build
|
|
|
e7b75f |
%if %{with python2}
|
|
|
e7b75f |
%py2_build
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
%if %{with python3}
|
|
|
e7b75f |
%py3_build
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%install
|
|
|
e7b75f |
%if %{with python2}
|
|
|
e7b75f |
%py2_install
|
|
|
e7b75f |
# Remove python3-only code (asyncio)
|
|
|
e7b75f |
for file in _asyncio.py tests/test_asyncio.py; do
|
|
|
e7b75f |
rm %{buildroot}/%{python2_sitelib}/%{pypi_name}/$file
|
|
|
e7b75f |
done
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
%if %{with python3}
|
|
|
e7b75f |
%py3_install
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%check
|
|
|
e7b75f |
%if %{with python3}
|
|
|
e7b75f |
# XXX: fails under python3
|
|
|
e7b75f |
pytest-%{python3_version}
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
%if %{with python2}
|
|
|
e7b75f |
pytest-%{python2_version} --ignore='tenacity/tests/test_asyncio.py'
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%if %{with python2}
|
|
|
e7b75f |
%files -n python2-%{pypi_name}
|
|
|
e7b75f |
%doc README.rst
|
|
|
e7b75f |
%license LICENSE
|
|
|
e7b75f |
%{python2_sitelib}/*
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
%if %{with python3}
|
|
|
e7b75f |
%files -n python3-%{pypi_name}
|
|
|
e7b75f |
%doc README.rst
|
|
|
e7b75f |
%license LICENSE
|
|
|
e7b75f |
%{python3_sitelib}/*
|
|
|
e7b75f |
%endif
|
|
|
e7b75f |
|
|
|
e7b75f |
|
|
|
e7b75f |
%changelog
|
|
|
e7b75f |
* Thu Dec 17 2020 Christopher Brown <chris.brown@redhat.com> - 6.3.1-1
|
|
|
e7b75f |
- Update to 6.3.1
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Sep 04 2020 Yatin Karel <ykarel@redhat.com> - 6.2.0-1
|
|
|
e7b75f |
- Update to 6.2.0
|
|
|
e7b75f |
|
|
|
e7b75f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-3
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 6.0.0-2
|
|
|
e7b75f |
- Rebuilt for Python 3.9
|
|
|
e7b75f |
|
|
|
e7b75f |
* Tue Feb 4 2020 Christopher Brown <chris.brown@redhat.com> - 6.0.0-1
|
|
|
e7b75f |
- Bump to 6.0.0
|
|
|
e7b75f |
|
|
|
e7b75f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-4
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-3
|
|
|
e7b75f |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
e7b75f |
|
|
|
e7b75f |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-2
|
|
|
e7b75f |
- Rebuilt for Python 3.8
|
|
|
e7b75f |
|
|
|
e7b75f |
* Sun Aug 18 2019 Christopher Brown <chris.brown@redhat.com> - 5.1.1-1
|
|
|
e7b75f |
- Bump to 5.1.1
|
|
|
e7b75f |
- Add setuptools_scm BR
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.4-2
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Tue Apr 16 2019 Christopher Brown <chris.brown@redhat.com> - 5.0.4-1
|
|
|
e7b75f |
- Bump to 5.0.4
|
|
|
e7b75f |
|
|
|
e7b75f |
* Wed Jan 30 2019 Christopher Brown <chris.brown@redhat.com> - 5.0.3-1
|
|
|
e7b75f |
- Bump to 5.0.3
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Jan 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.0.2-2
|
|
|
e7b75f |
- Enable python dependency generator
|
|
|
e7b75f |
|
|
|
e7b75f |
* Tue Dec 4 2018 Christopher Brown <chris.brown@redhat.com> - 5.0.2-1
|
|
|
e7b75f |
- Bump to 5.0.2
|
|
|
e7b75f |
Add conditionals for F30 and CentOS
|
|
|
e7b75f |
Add description macro
|
|
|
e7b75f |
|
|
|
e7b75f |
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.12.0-2
|
|
|
e7b75f |
- Drop explicit locale setting
|
|
|
e7b75f |
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
e7b75f |
|
|
|
e7b75f |
* Thu Jul 19 2018 Matthias Runge <mrunge@redhat.com> - 4.12.0-1
|
|
|
e7b75f |
- rebase to 4.12.0 (rhbz#1551561)
|
|
|
e7b75f |
|
|
|
e7b75f |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-2
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Jul 13 2018 Pradeep Kilambi <pkilambi@redhat.com> - 4.9.0-1
|
|
|
e7b75f |
- rebase to 4.9.0
|
|
|
e7b75f |
|
|
|
e7b75f |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.8.0-3
|
|
|
e7b75f |
- Rebuilt for Python 3.7
|
|
|
e7b75f |
|
|
|
e7b75f |
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 4.8.0-2
|
|
|
e7b75f |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
e7b75f |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Feb 16 2018 Pradeep Kilambi <pkilambi@redhat.com> - 4.8.0-1
|
|
|
e7b75f |
- rebase to 4.8.0
|
|
|
e7b75f |
|
|
|
e7b75f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Sat Aug 5 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 4.4.0-1
|
|
|
e7b75f |
- Upstream 4.4.0
|
|
|
e7b75f |
- Run unit tests
|
|
|
e7b75f |
|
|
|
e7b75f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
|
|
|
e7b75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e7b75f |
|
|
|
e7b75f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-2
|
|
|
e7b75f |
- Rebuild for Python 3.6
|
|
|
e7b75f |
|
|
|
e7b75f |
* Thu Oct 06 2016 Pradeep Kilambi <pkilambi@redhat.com> - 3.2.1-1
|
|
|
e7b75f |
- rebase to 3.2.1
|
|
|
e7b75f |
|
|
|
e7b75f |
* Wed Sep 07 2016 Pradeep Kilambi <pkilambi@redhat.com> - 3.0.0-1
|
|
|
e7b75f |
- initial package release
|