Blame SPECS/python-pytest-trio.spec

1dc571
%global pypi_name pytest-trio
1dc571
1dc571
Name:           python-%{pypi_name}
1dc571
Version:        0.8.0
1dc571
Release:        12%{?dist}
1dc571
Summary:        Pytest plugin for trio
1dc571
1dc571
# Automatically converted from old format: MIT or ASL 2.0 - review is highly recommended.
1dc571
License:        LicenseRef-Callaway-MIT OR Apache-2.0
1dc571
URL:            https://github.com/python-trio/pytest-trio
1dc571
Source0:        https://github.com/python-trio/pytest-trio/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
1dc571
1dc571
# Remove trio.tests import causing warnings
1dc571
# https://github.com/python-trio/pytest-trio/pull/135
1dc571
# We only backport the fix, not the additional formatting changes.
1dc571
Patch:          https://github.com/python-trio/pytest-trio/pull/135/commits/9cda20bbb966fe1e4ae51921d566c668654ee5e1.patch
1dc571
1dc571
BuildArch:      noarch
1dc571
1dc571
%description
1dc571
This is a pytest plugin to help you test projects that use Trio, a friendly
1dc571
library for concurrency and async I/O in Python.
1dc571
1dc571
%package -n     python3-%{pypi_name}
1dc571
Summary:        %{summary}
1dc571
1dc571
BuildRequires:  python3-devel
1dc571
BuildRequires:  python3-pytest
1dc571
BuildRequires:  python3-hypothesis
1dc571
BuildRequires:  python3-setuptools
1dc571
BuildRequires:  python3-trio
1dc571
%{?python_provide:%python_provide python3-%{pypi_name}}
1dc571
1dc571
%description -n python3-%{pypi_name}
1dc571
This is a pytest plugin to help you test projects that use Trio, a friendly
1dc571
library for concurrency and async I/O in Python.
1dc571
1dc571
%package -n python-%{pypi_name}-doc
1dc571
Summary:        pytest-trio documentation
1dc571
1dc571
#BuildRequires:  python3-sphinx
1dc571
#BuildRequires:  python3-sphinxcontrib-trio
1dc571
#BuildRequires:  python3-sphinx_rtd_theme
1dc571
1dc571
%description -n python-%{pypi_name}-doc
1dc571
Documentation for %{name}.
1dc571
1dc571
%prep
1dc571
%autosetup -n %{pypi_name}-%{version} -p1
1dc571
rm -rf %{pypi_name}.egg-info
1dc571
sed -i /RemovedInPytest4Warning/d pytest_trio/_tests/conftest.py
1dc571
sed -i s/--cov// pytest.ini
1dc571
1dc571
%build
1dc571
%py3_build
1dc571
#   An error happened in rendering the page history.
1dc571
#   Reason: UndefinedError("'logo' is undefined")
1dc571
# PYTHONPATH=${PWD} sphinx-build-3 docs/source html
1dc571
# rm -rf html/.{doctrees,buildinfo}
1dc571
1dc571
%install
1dc571
%py3_install
1dc571
1dc571
# https://github.com/python-trio/pytest-trio/issues/84
1dc571
%check
1dc571
%pytest -v -W "ignore::trio.TrioDeprecationWarning"
1dc571
1dc571
%files -n python3-%{pypi_name}
1dc571
%license LICENSE.MIT LICENSE LICENSE.APACHE2
1dc571
%doc README.rst
1dc571
%{python3_sitelib}/pytest_trio/
1dc571
%{python3_sitelib}/pytest_trio-%{version}-py%{python3_version}.egg-info
1dc571
1dc571
#%%files -n python-%%{pypi_name}-doc
1dc571
#%%doc html
1dc571
#%%license LICENSE.MIT LICENSE LICENSE.APACHE2
1dc571
1dc571
%changelog
1dc571
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-12
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
1dc571
1dc571
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 0.8.0-11
1dc571
- convert license to SPDX
1dc571
1dc571
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-10
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
1dc571
1dc571
* Sun Jul 07 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.0-9
1dc571
- Remove trio.tests imports (removed from trio 0.24+)
1dc571
1dc571
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.8.0-8
1dc571
- Rebuilt for Python 3.13
1dc571
1dc571
* Mon Apr 08 2024 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.0-7
1dc571
- Ignore trio.TrioDeprecationWarning (closes rhbz#2261596)
1dc571
1dc571
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-6
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1dc571
1dc571
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1dc571
1dc571
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1dc571
1dc571
* Sat Jul 01 2023 Python Maint <python-maint@redhat.com> - 0.8.0-3
1dc571
- Rebuilt for Python 3.12
1dc571
1dc571
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1dc571
1dc571
* Fri Nov 11 2022 Lumír Balhar <lbalhar@redhat.com> - 0.8.0-1
1dc571
- Update to 0.8.0 (#2142072)
1dc571
1dc571
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-7
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1dc571
1dc571
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.7.0-6
1dc571
- Rebuilt for Python 3.11
1dc571
1dc571
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1dc571
1dc571
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1dc571
1dc571
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-3
1dc571
- Rebuilt for Python 3.10
1dc571
1dc571
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1dc571
1dc571
* Thu Jan 07 2021 Joel Capitao <jcapitao@redhat.com> - 0.7.0-1
1dc571
- Update to latest upstream release 0.7.0
1dc571
1dc571
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1dc571
1dc571
* Thu Jun 04 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.0-1
1dc571
- Update to latest upstream release 0.6.0
1dc571
1dc571
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
1dc571
- Rebuilt for Python 3.9
1dc571
1dc571
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
1dc571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1dc571
1dc571
* Wed Jan 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.2-1
1dc571
- Initial package for Fedora