a4234c2
%global pypi_name pytest-asyncio
a4234c2
%global srcname pytest_asyncio
a4234c2
%global project_owner pytest-dev
a4234c2
%global github_name pytest-asyncio
a4234c2
bc9eb7a
%bcond_without  tests
bc9eb7a
a4234c2
Name:           python3-%{pypi_name}
cef57e5
Version:        0.14.0
554bc4d
Release:        5%{?dist}
a4234c2
Summary:        Pytest support for asyncio
a4234c2
a4234c2
License:        ASL 2.0
a4234c2
URL:            https://pypi.python.org/pypi/%{pypi_name}
f556ad5
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz
a4234c2
a4234c2
BuildArch:      noarch
a4234c2
BuildRequires:  python3-devel
e8ec10a
BuildRequires:  python3-setuptools
bc9eb7a
%if %{with tests}
cef57e5
BuildRequires:  python3-pytest >= 5.4
bc9eb7a
BuildRequires:  python3-coverage
bc9eb7a
BuildRequires:  python3-async-generator >= 1.3
cef57e5
BuildRequires:  python3-hypothesis >= 5.7.1
bc9eb7a
%endif
a4234c2
a4234c2
%description
a4234c2
pytest-asyncio is an Apache2 licensed library, written in Python, for testing
a4234c2
asyncio code with pytest.
a4234c2
a4234c2
asyncio code is usually written in the form of coroutines, which makes it
a4234c2
slightly more difficult to test using normal testing tools. pytest-asyncio
a4234c2
provides useful fixtures and markers to make testing easier.
a4234c2
a4234c2
a4234c2
%prep
f556ad5
%setup -qn %{github_name}-%{version}
a4234c2
9223a79
# Don't treat all warnings as errors, there are DeprecationWarnings on 3.8
9223a79
sed -i '/filterwarnings = error/d' setup.cfg
a4234c2
a4234c2
%build
a4234c2
%py3_build
a4234c2
a4234c2
a4234c2
%install
a4234c2
%py3_install
a4234c2
a4234c2
bc9eb7a
%if %{with tests}
bc9eb7a
%check
cef57e5
%pytest --verbose
bc9eb7a
%endif
bc9eb7a
bc9eb7a
a4234c2
%files
a4234c2
%license LICENSE
a4234c2
%doc README.rst
a4234c2
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
a4234c2
%{python3_sitelib}/%{srcname}/
a4234c2
a4234c2
a4234c2
%changelog
554bc4d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-5
554bc4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
554bc4d
2b6f6dd
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.14.0-4
2b6f6dd
- Rebuilt for Python 3.10
2b6f6dd
b288d22
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.14.0-3
b288d22
- Bootstrap for Python 3.10
b288d22
c8e6ffd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
c8e6ffd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c8e6ffd
cef57e5
* Sat Aug 08 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-1
cef57e5
- Update to 0.14.0
cef57e5
- Fixes rhbz#1826108
cef57e5
afa1113
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
afa1113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
afa1113
6f83357
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-6
6f83357
- Rebuilt for Python 3.9
6f83357
4c740f9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-5
4c740f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4c740f9
1e27af7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-4
1e27af7
- Rebuilt for Python 3.8.0rc1 (#1748018)
1e27af7
90ef1bc
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-3
90ef1bc
- Rebuilt for Python 3.8
90ef1bc
404f699
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
404f699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
404f699
ba45c3f
* Thu Apr 18 2019 Carl George <carl@george.computer> - 0.10.0-1
ba45c3f
- Latest upstream
bc9eb7a
- Run test suite
ba45c3f
162d6cc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
162d6cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
162d6cc
f556ad5
* Wed Aug 01 2018 Julien Enselme <jujens@jujens.eu> - 0.9.0-1
f556ad5
- Update to 0.9.0
f556ad5
5ef6ef3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4.git18535c3
5ef6ef3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5ef6ef3
de6c925
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-3.git18535c3
de6c925
- Rebuilt for Python 3.7
de6c925
e6aa4e0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2.git18535c3
e6aa4e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e6aa4e0
d85ac3f
* Tue Sep 26 2017 <jujens@jujens.eu> - 0.8.0-1.git18535c3
d85ac3f
- Update to 0.8.0
d85ac3f
eb27be1
* Thu Sep 14 2017 <jujens@jujens.eu> - 0.7.0-1.git2407487
eb27be1
- Update to 0.7.0
eb27be1
0c7f782
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2.git72a6c2b
0c7f782
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0c7f782
170e367
* Tue May 30 2017 Julien Enselme <jujens@jujens.eu> - 0.6.0-1.git72a6c2b
170e367
- Update to 0.6.0
170e367
4928bca
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4.git917d8a8
4928bca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4928bca
730b550
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-3.git917d8a8
730b550
- Rebuild for Python 3.6
730b550
96046d8
* Mon Oct 10 2016 Julien Enselme <jujens@jujens.eu> - 0.5.0-2.git917d8a8
96046d8
- Bump version
96046d8
a32cc0a
* Wed Sep 07 2016 Julien Enselme <jujens@jujens.eu> - 0.5.0-1.git917d8a8
a32cc0a
- Update to 0.5.0
a32cc0a
9ce0873
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2.git64b79e1
9ce0873
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9ce0873
b913cf0
* Sun Jun 05 2016 Julien Enselme <jujens@jujens.eu> - 0.4.1-1.git64b79e1
b913cf0
- Update to 0.4.1
b913cf0
f258324
* Wed Jun 01 2016 Julien Enselme <jujens@jujens.eu> - 0.4.0-1.gitb4a4bf8
f258324
- Update to 0.4.0
f258324
aea7dea
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2.gitae9b430
aea7dea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aea7dea
edfc886
* Sun Dec 20 2015 Julien Enselme <jujens@jujens.eu> - 0.3.0-1.gitae9b430
5640432
- Update to 0.3.0 (bz:1293083)
5640432
ad91cce
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.1.3-3.git2a4c7e6
ad91cce
- Rebuilt for python 3.5
ad91cce
ad91cce
* Sun Aug 2 2015 Julien Enselme <jujens@jujens.eu> - 0.1.3-2.git2a4c7e6
a4234c2
- Add %%python_provide
a4234c2
a4234c2
* Sat Aug 1 2015 Julien Enselme <jujens@jujens.eu> - 0.1.3-1.git2a4c7e6
a4234c2
- Initial package