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