d308d37
%global pypi_name pytest-trio
d308d37
d308d37
Name:           python-%{pypi_name}
882a258
Version:        0.7.0
adcbebc
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-async-generator
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
d308d37
BuildRequires:  python3-sphinx
d308d37
BuildRequires:  python3-sphinxcontrib-trio
d308d37
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
d308d37
d308d37
%build
d308d37
%py3_build
d308d37
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
d308d37
rm -rf html/.{doctrees,buildinfo}
d308d37
d308d37
%install
d308d37
%py3_install
d308d37
d308d37
# https://github.com/python-trio/pytest-trio/issues/84
d308d37
#%check
d308d37
#PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v pytest_trio
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
d308d37
%files -n python-%{pypi_name}-doc
d308d37
%doc html
d308d37
%license LICENSE.MIT LICENSE LICENSE.APACHE2
d308d37
d308d37
%changelog
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