Blame SPECS/python-pytest-asyncio.spec

ff7979
%bcond_without  tests
ff7979
ff7979
Name:           python-pytest-asyncio
ff7979
Version:        0.23.8
ff7979
Release:        1%{?dist}
ff7979
Summary:        Pytest support for asyncio
ff7979
License:        Apache-2.0
ff7979
URL:            https://github.com/pytest-dev/pytest-asyncio
ff7979
Source:         %{pypi_source pytest_asyncio}
ff7979
BuildArch:      noarch
ff7979
BuildRequires:  python3-devel
ff7979
ff7979
%global _description %{expand:
ff7979
pytest-asyncio is a pytest plugin.  It facilitates testing of code that uses the
ff7979
asyncio library.  Specifically, pytest-asyncio provides support for coroutines
ff7979
as test functions.  This allows users to await code inside their tests.}
ff7979
ff7979
ff7979
%description %{_description}
ff7979
ff7979
ff7979
%package -n python3-pytest-asyncio
ff7979
Summary:        %{summary}
ff7979
ff7979
ff7979
%description -n python3-pytest-asyncio %{_description}
ff7979
ff7979
ff7979
%prep
ff7979
%autosetup -n pytest_asyncio-%{version}
ff7979
ff7979
# disable code quality checks in "testing" extras
ff7979
sed -e '/coverage >=/d' \
ff7979
    -i setup.cfg
ff7979
ff7979
%if %{defined el9}
ff7979
# EL9 has setuptools_scm 6.0.1 that works
ff7979
sed -e '/setuptools_scm/ s/>=6.2//' -i pyproject.toml
ff7979
%endif
ff7979
ff7979
ff7979
%generate_buildrequires
ff7979
# upstream also has tox that invokes make that invokes pytest...
ff7979
# we install the [testing] extra and will invoke pytest directly instead
ff7979
%pyproject_buildrequires %{?with_tests:-x testing}
ff7979
ff7979
ff7979
%build
ff7979
%pyproject_wheel
ff7979
ff7979
ff7979
%install
ff7979
%pyproject_install
ff7979
%pyproject_save_files -l pytest_asyncio
ff7979
ff7979
ff7979
%check
ff7979
%if %{with tests}
ff7979
# Some of the upstream tests are really picky about the number of warnings
ff7979
# emitted.  This can cause failures for us in rawhide with the latest versions
ff7979
# of pytest and pre-release versions of python, so we'll skip those tests.
ff7979
export PYTEST_ADDOPTS="-k 'not test_can_use_explicit_event_loop_fixture and \
ff7979
not test_event_loop_fixture_finalizer_raises_warning_when_fixture_leaves_loop_unclosed and \
ff7979
not test_event_loop_fixture_finalizer_raises_warning_when_test_leaves_loop_unclosed'"
ff7979
%pytest
ff7979
%else
ff7979
%pyproject_check_import
ff7979
%endif
ff7979
ff7979
ff7979
%files -n python3-pytest-asyncio -f %{pyproject_files}
ff7979
%doc README.rst
ff7979
ff7979
ff7979
%changelog
ff7979
* Sat Oct 12 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.23.8-1
ff7979
- Update to version 0.23.8
ff7979
ff7979
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 0.23.6-5
ff7979
- convert ASL 2.0 license to SPDX
ff7979
ff7979
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.6-4
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
ff7979
ff7979
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.23.6-3
ff7979
- Rebuilt for Python 3.13
ff7979
ff7979
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.23.6-2
ff7979
- Bootstrap for Python 3.13
ff7979
ff7979
* Tue Apr 30 2024 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.23.6-1
ff7979
- Update to 0.23.6
ff7979
ff7979
* Wed Mar 13 2024 Sandro <devel@penguinpee.nl> - 0.23.5.post1-1
ff7979
- Update to 0.23.5.post1 (RHBZ#2222251)
ff7979
ff7979
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-7
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ff7979
ff7979
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-6
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ff7979
ff7979
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-5
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
ff7979
ff7979
* Sun Jul 02 2023 Python Maint <python-maint@redhat.com> - 0.21.0-4
ff7979
- Rebuilt for Python 3.12
ff7979
ff7979
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.21.0-3
ff7979
- Bootstrap for Python 3.12
ff7979
ff7979
* Tue Apr 25 2023 Julien Enselme <jujens@jujens.eu> - 0.21.0-2
ff7979
- Add missing sources
ff7979
ff7979
* Tue Apr 25 2023 Julien Enselme <jujens@jujens.eu> - 0.21.0-1
ff7979
- Update to 0.21.0
ff7979
ff7979
* Wed Feb 15 2023 Yaakov Selkowitz <yselkowitz@fedoraproject.org> - 0.20.3-3
ff7979
- Disable tests by default in all RHEL builds
ff7979
ff7979
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.3-2
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ff7979
ff7979
* Wed Dec 21 2022 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 0.20.3-1
ff7979
- Update to 0.20.3
ff7979
ff7979
* Sat Nov 12 2022 Julien Enselme <jujens@jujens.eu> - 0.20.2-1
ff7979
- local build
ff7979
ff7979
* Tue Oct 25 2022 Federico Pellegrin <fede@evolware.org> - 0.20.1-1
ff7979
- Update to 0.20.1
ff7979
ff7979
* Tue Aug 02 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.19.0-1
ff7979
- Update to 0.19.0
ff7979
ff7979
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.3-4
ff7979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ff7979
ff7979
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.18.3-3
ff7979
- Rebuilt for Python 3.11
ff7979
ff7979
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.18.3-2
ff7979
- Bootstrap for Python 3.11
ff7979
ff7979
* Wed Apr 20 2022 Carl George <carl@george.computer> - 0.18.3-1
ff7979
- Renamed from python3-pytest-asyncio (resolves: rhbz#2076825)