|
|
5e145c |
%global srcname async-timeout
|
|
|
5e145c |
%global common_desc asyncio-compatible timeout context manager\
|
|
|
5e145c |
The context manager is useful in cases when you want to apply timeout\
|
|
|
5e145c |
logic around block of code or in cases when asyncio.wait_for() is not \
|
|
|
5e145c |
suitable. Also it's much faster than asyncio.wait_for() because timeout\
|
|
|
5e145c |
doesn't create a new task.
|
|
|
5e145c |
|
|
|
5e145c |
Name: python-%{srcname}
|
|
|
5e145c |
Version: 3.0.1
|
|
|
5e145c |
Release: 11%{?dist}
|
|
|
5e145c |
Summary: An asyncio-compatible timeout context manager
|
|
|
5e145c |
|
|
|
5e145c |
License: ASL 2.0
|
|
|
5e145c |
URL: https://github.com/aio-libs/async-timeout
|
|
|
5e145c |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
5e145c |
BuildArch: noarch
|
|
|
5e145c |
|
|
|
5e145c |
%description
|
|
|
5e145c |
%{common_desc}
|
|
|
5e145c |
|
|
|
5e145c |
# This module is Python 3 only
|
|
|
5e145c |
%package -n python3-%{srcname}
|
|
|
5e145c |
Summary: %{summary}
|
|
|
5e145c |
|
|
|
5e145c |
BuildRequires: python3-devel
|
|
|
5e145c |
BuildRequires: python3-setuptools
|
|
|
5e145c |
BuildRequires: python3-pytest-runner
|
|
|
5e145c |
|
|
|
5e145c |
%bcond_with tests
|
|
|
5e145c |
%if %{with tests}
|
|
|
5e145c |
BuildRequires: python3-pytest-aiohttp
|
|
|
5e145c |
%endif
|
|
|
5e145c |
|
|
|
5e145c |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
5e145c |
|
|
|
5e145c |
%description -n python3-%{srcname}
|
|
|
5e145c |
%{common_desc}
|
|
|
5e145c |
|
|
|
5e145c |
%prep
|
|
|
5e145c |
%autosetup -n %{srcname}-%{version}
|
|
|
5e145c |
|
|
|
5e145c |
%build
|
|
|
5e145c |
%py3_build
|
|
|
5e145c |
|
|
|
5e145c |
%install
|
|
|
5e145c |
%py3_install
|
|
|
5e145c |
|
|
|
5e145c |
%if %{with tests}
|
|
|
5e145c |
%check
|
|
|
5e145c |
%{__python3} setup.py test
|
|
|
5e145c |
%endif
|
|
|
5e145c |
|
|
|
5e145c |
%files -n python3-%{srcname}
|
|
|
5e145c |
%license LICENSE
|
|
|
5e145c |
%doc README.rst CHANGES.rst
|
|
|
5e145c |
%{python3_sitelib}/async_timeout/
|
|
|
5e145c |
%{python3_sitelib}/async_timeout-*.egg-info/
|
|
|
5e145c |
|
|
|
5e145c |
%changelog
|
|
|
5e145c |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-11
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-10
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-9
|
|
|
5e145c |
- Rebuilt for Python 3.9
|
|
|
5e145c |
|
|
|
5e145c |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-8
|
|
|
5e145c |
- Bootstrap for Python 3.9
|
|
|
5e145c |
|
|
|
5e145c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-7
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-6
|
|
|
5e145c |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
5e145c |
|
|
|
5e145c |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-5
|
|
|
5e145c |
- Rebuilt for Python 3.8
|
|
|
5e145c |
|
|
|
5e145c |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-4
|
|
|
5e145c |
- Bootstrap for Python 3.8
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Jun 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-2
|
|
|
5e145c |
- Enable tests
|
|
|
5e145c |
|
|
|
5e145c |
* Mon May 06 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
|
|
|
5e145c |
- Update to latest upstream release 3.0.1 (rhbz#1707011)
|
|
|
5e145c |
|
|
|
5e145c |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
|
|
|
5e145c |
- Rebuilt for Python 3.7
|
|
|
5e145c |
|
|
|
5e145c |
* Sat May 05 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.0-1
|
|
|
5e145c |
- Update to latest upstream release 3.0.0 (rhbz#1575247)
|
|
|
5e145c |
|
|
|
5e145c |
* Thu Mar 15 2018 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.1-1
|
|
|
5e145c |
- Update to latest upstream release 2.0.1 (rhbz#1554798)
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Sun Sep 17 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 1.4.0-1
|
|
|
5e145c |
- Update to 1.4.0 (rhbz #1484848)
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Aug 25 2017 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.0-1
|
|
|
5e145c |
- Update to latest upstream release 1.3.0 (rhbz#1484848)
|
|
|
5e145c |
|
|
|
5e145c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Fri May 12 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 1.2.1-1
|
|
|
5e145c |
- Update to 1.2.1
|
|
|
5e145c |
|
|
|
5e145c |
* Sun Mar 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.0-1
|
|
|
5e145c |
- Update to 1.2.0
|
|
|
5e145c |
|
|
|
5e145c |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
|
|
5e145c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
5e145c |
|
|
|
5e145c |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
|
|
|
5e145c |
- Rebuild for Python 3.6
|
|
|
5e145c |
|
|
|
5e145c |
* Thu Nov 17 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.1.0-3
|
|
|
5e145c |
- Add missing BR
|
|
|
5e145c |
- Rename the pkg
|
|
|
5e145c |
|
|
|
5e145c |
* Sun Nov 13 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.1.0-2
|
|
|
5e145c |
- Update files section and the description
|
|
|
5e145c |
|
|
|
5e145c |
* Fri Nov 11 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.1.0-1
|
|
|
5e145c |
- Initial spec
|
|
|
5e145c |
|