|
|
0f7e5a3 |
%global pypi_name aiounittest
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
Name: python-%{pypi_name}
|
|
|
0f7e5a3 |
Version: 1.3.1
|
|
|
3010e2e |
Release: 16%{?dist}
|
|
|
0f7e5a3 |
Summary: Test asyncio code more easily
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
License: MIT
|
|
|
0f7e5a3 |
URL: https://github.com/kwarunek/aiounittest
|
|
|
0f7e5a3 |
Source0: https://github.com/kwarunek/aiounittest/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
ca782a9 |
|
|
|
ca782a9 |
# Don't run @asyncio.coroutine tests with Python 3.11
|
|
|
ca782a9 |
Patch: https://github.com/kwarunek/aiounittest/pull/21.patch
|
|
|
ca782a9 |
|
|
|
b2d5c29 |
# test_sync_async_add: After closing the default event loop, set a new one
|
|
|
b2d5c29 |
Patch: https://github.com/kwarunek/aiounittest/pull/22.patch
|
|
|
b2d5c29 |
|
|
|
0f7e5a3 |
BuildArch: noarch
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%description
|
|
|
0f7e5a3 |
The aiounittest is a helper library to ease your pain (and boilerplate),
|
|
|
0f7e5a3 |
when writing tests of asynchronous code (:code:asyncio). You can test:
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
- synchronous code (same as the :code:unittest.TestCase)
|
|
|
0f7e5a3 |
- asynchronous code, it supports syntax with async/await (Python 3.5+) and
|
|
|
0f7e5a3 |
asyncio.coroutine/yield from (Python 3.4)
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%package -n python3-%{pypi_name}
|
|
|
0f7e5a3 |
Summary: %{summary}
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
BuildRequires: python3-devel
|
|
|
4c9096f |
BuildRequires: python3-pytest
|
|
|
0f7e5a3 |
BuildRequires: python3-setuptools
|
|
|
0f7e5a3 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%description -n python3-%{pypi_name}
|
|
|
0f7e5a3 |
The aiounittest is a helper library to ease your pain (and boilerplate),
|
|
|
0f7e5a3 |
when writing tests of asynchronous code (:code:asyncio). You can test:
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
- synchronous code (same as the :code:unittest.TestCase)
|
|
|
0f7e5a3 |
- asynchronous code, it supports syntax with async/await (Python 3.5+) and
|
|
|
0f7e5a3 |
asyncio.coroutine/yield from Python 3.4
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%prep
|
|
|
ca782a9 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
0f7e5a3 |
rm -rf %{pypi_name}.egg-info
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%build
|
|
|
0f7e5a3 |
%py3_build
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%install
|
|
|
0f7e5a3 |
%py3_install
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%check
|
|
|
4c9096f |
%pytest -v
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%files -n python3-%{pypi_name}
|
|
|
0f7e5a3 |
%license LICENSE
|
|
|
0f7e5a3 |
%doc README.rst
|
|
|
0f7e5a3 |
%{python3_sitelib}/%{pypi_name}
|
|
|
a46e602 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
%changelog
|
|
|
3010e2e |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-16
|
|
|
3010e2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
3010e2e |
|
|
|
2cfcec6 |
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-15
|
|
|
2cfcec6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
2cfcec6 |
|
|
|
f782a1c |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-14
|
|
|
f782a1c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
f782a1c |
|
|
|
cd24946 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.3.1-13
|
|
|
cd24946 |
- Rebuilt for Python 3.12
|
|
|
cd24946 |
|
|
|
4ef7389 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-12
|
|
|
4ef7389 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
4ef7389 |
|
|
|
56d67ad |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-11
|
|
|
56d67ad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
56d67ad |
|
|
|
5b9e83c |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.3.1-10
|
|
|
5b9e83c |
- Rebuilt for Python 3.11
|
|
|
5b9e83c |
|
|
|
4c9096f |
* Fri Jun 10 2022 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-9
|
|
|
4c9096f |
- Use pytest instead of nose to test the package
|
|
|
4c9096f |
- Drop an unused dependency on coverage
|
|
|
4c9096f |
|
|
|
240b01c |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
|
|
|
240b01c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
240b01c |
|
|
|
6292a0b |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-7
|
|
|
6292a0b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
6292a0b |
|
|
|
6024c87 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.1-6
|
|
|
6024c87 |
- Rebuilt for Python 3.10
|
|
|
6024c87 |
|
|
|
3f92890 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
|
3f92890 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
3f92890 |
|
|
|
c9260bb |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
|
|
|
c9260bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c9260bb |
|
|
|
4ac087d |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-3
|
|
|
4ac087d |
- Rebuilt for Python 3.9
|
|
|
4ac087d |
|
|
|
0f7e5a3 |
* Mon Jan 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-2
|
|
|
0f7e5a3 |
- Fix description (rhbz#1786953)
|
|
|
0f7e5a3 |
|
|
|
0f7e5a3 |
* Sun Dec 29 2019 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-1
|
|
|
0f7e5a3 |
- Initial package for Fedora
|