%global srcname pytest-rerunfailures # Needed for Python bootstrap %bcond_without tests Name: python-%{srcname} Version: 14.0 Release: 3%{?dist} Summary: A py.test plugin that re-runs failed tests to eliminate flakey failures License: MPL-2.0 URL: https://github.com/pytest-dev/pytest-rerunfailures Source0: https://github.com/pytest-dev/pytest-rerunfailures/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate intermittent failures.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} # the package does not work with pytest 8 # downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2279997 sed -i 's/"pytest>=7.2",/"pytest<=8",/' pyproject.toml %generate_buildrequires %pyproject_buildrequires %{?with_tests: -t} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pytest_rerunfailures %if %{with tests} %check %tox %endif %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc CHANGES.rst README.rst %changelog * Mon Jul 29 2024 Tomáš Hrnčiar - 14.0-3 - BuildRequire pytest < 8 * Fri Jul 19 2024 Fedora Release Engineering - 14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 17 2024 Scott K Logan - 14.0-1 - Update to 14.0 (rhbz#2251442) * Fri Jun 07 2024 Python Maint - 12.0-5 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 12.0-4 - Bootstrap for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Scott K Logan - 12.0-1 - Update to 12.0 (rhbz#2168740) * Fri Jul 21 2023 Fedora Release Engineering - 11.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 11.0-4 - Rebuilt for Python 3.12 * Tue Jun 13 2023 Python Maint - 11.0-3 - Bootstrap for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Scott K Logan - 11.0-1 - Update to 11.0 (rhbz#2160820) * Tue Nov 22 2022 Scott K Logan - 10.3-1 - Update to 10.3 (rhbz#2144871) - Define _description variable to reduce duplication - Drop macro from URL to improve ergonomics - Use modern packaging macros - Switch to SPDX license tag * Fri Jul 22 2022 Fedora Release Engineering - 10.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 10.2-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 11 2022 Scott K Logan - 10.2-1 - Update to 10.2 (rhbz#1965106) * Fri Jul 23 2021 Fedora Release Engineering - 9.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 9.1.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 9.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Sep 30 2020 Scott K Logan - 9.1.1-1 - Update to 9.1.1 (rhbz#1872994) * Wed Jul 29 2020 Fedora Release Engineering - 9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 29 2020 Scott K Logan - 9.0-1 - Update to 9.0 (rhbz#1773599) * Mon May 25 2020 Miro Hrončok - 8.0-2 - Rebuilt for Python 3.9 * Wed Apr 15 2020 Scott K Logan - 8.0-1 - Update to 8.0 * Thu Jan 30 2020 Fedora Release Engineering - 7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 7.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 7.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 17 2019 Scott K Logan - 7.0-1 - Update to 7.0 (rhbz#1693860) * Tue Feb 12 2019 Scott K Logan - 6.0-1 - Initial package