d308d37
%global pypi_name pytest-trio
d308d37
d308d37
Name:           python-%{pypi_name}
10e8c9b
Version:        0.8.0
efec1d6
Release:        7%{?dist}
d308d37
Summary:        Pytest plugin for trio
d308d37
d308d37
License:        MIT or ASL 2.0
d308d37
URL:            https://github.com/python-trio/pytest-trio
d308d37
Source0:        https://github.com/python-trio/pytest-trio/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
d308d37
BuildArch:      noarch
d308d37
d308d37
%description
d308d37
This is a pytest plugin to help you test projects that use Trio, a friendly
d308d37
library for concurrency and async I/O in Python.
d308d37
d308d37
%package -n     python3-%{pypi_name}
d308d37
Summary:        %{summary}
d308d37
d308d37
BuildRequires:  python3-devel
d308d37
BuildRequires:  python3-pytest
d308d37
BuildRequires:  python3-hypothesis
d308d37
BuildRequires:  python3-setuptools
d308d37
BuildRequires:  python3-trio
d308d37
%{?python_provide:%python_provide python3-%{pypi_name}}
d308d37
d308d37
%description -n python3-%{pypi_name}
d308d37
This is a pytest plugin to help you test projects that use Trio, a friendly
d308d37
library for concurrency and async I/O in Python.
d308d37
d308d37
%package -n python-%{pypi_name}-doc
d308d37
Summary:        pytest-trio documentation
d308d37
f078ee6
#BuildRequires:  python3-sphinx
f078ee6
#BuildRequires:  python3-sphinxcontrib-trio
f078ee6
#BuildRequires:  python3-sphinx_rtd_theme
d308d37
d308d37
%description -n python-%{pypi_name}-doc
d308d37
Documentation for %{name}.
d308d37
d308d37
%prep
d308d37
%autosetup -n %{pypi_name}-%{version}
d308d37
rm -rf %{pypi_name}.egg-info
d308d37
sed -i /RemovedInPytest4Warning/d pytest_trio/_tests/conftest.py
f078ee6
sed -i s/--cov// pytest.ini
d308d37
d308d37
%build
d308d37
%py3_build
f078ee6
#   An error happened in rendering the page history.
f078ee6
#   Reason: UndefinedError("'logo' is undefined")
f078ee6
# PYTHONPATH=${PWD} sphinx-build-3 docs/source html
f078ee6
# rm -rf html/.{doctrees,buildinfo}
d308d37
d308d37
%install
d308d37
%py3_install
d308d37
d308d37
# https://github.com/python-trio/pytest-trio/issues/84
f078ee6
%check
efec1d6
%pytest -v -W "ignore::trio.TrioDeprecationWarning"
d308d37
d308d37
%files -n python3-%{pypi_name}
d308d37
%license LICENSE.MIT LICENSE LICENSE.APACHE2
d308d37
%doc README.rst
d308d37
%{python3_sitelib}/pytest_trio/
d86ebfb
%{python3_sitelib}/pytest_trio-%{version}-py%{python3_version}.egg-info
d308d37
f078ee6
#%%files -n python-%%{pypi_name}-doc
f078ee6
#%%doc html
f078ee6
#%%license LICENSE.MIT LICENSE LICENSE.APACHE2
d308d37
d308d37
%changelog
efec1d6
* Mon Apr 08 2024 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.0-7
efec1d6
- Ignore trio.TrioDeprecationWarning (closes rhbz#2261596)
efec1d6
7658197
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-6
7658197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7658197
c666d1c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
c666d1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c666d1c
c4cd9ae
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
c4cd9ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c4cd9ae
f582f3e
* Sat Jul 01 2023 Python Maint <python-maint@redhat.com> - 0.8.0-3
f582f3e
- Rebuilt for Python 3.12
f582f3e
044b68a
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
044b68a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
044b68a
10e8c9b
* Fri Nov 11 2022 Lumír Balhar <lbalhar@redhat.com> - 0.8.0-1
10e8c9b
- Update to 0.8.0 (#2142072)
10e8c9b
adcbebc
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-7
adcbebc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
adcbebc
2d70e8d
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.7.0-6
2d70e8d
- Rebuilt for Python 3.11
2d70e8d
b538593
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
b538593
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b538593
31a99a7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
31a99a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
31a99a7
cadc19e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-3
cadc19e
- Rebuilt for Python 3.10
cadc19e
e650c55
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
e650c55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e650c55
882a258
* Thu Jan 07 2021 Joel Capitao <jcapitao@redhat.com> - 0.7.0-1
882a258
- Update to latest upstream release 0.7.0
882a258
3e5e4b2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
3e5e4b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3e5e4b2
f0f60e5
* Thu Jun 04 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.0-1
f0f60e5
- Update to latest upstream release 0.6.0
f0f60e5
8dd99d1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
8dd99d1
- Rebuilt for Python 3.9
8dd99d1
03039f2
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
03039f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
03039f2
d308d37
* Wed Jan 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.2-1
d308d37
- Initial package for Fedora