|
|
|
@ -1,65 +1,121 @@
|
|
|
|
|
%global srcname pytest-rerunfailures
|
|
|
|
|
|
|
|
|
|
# Needed for Python bootstrap
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 9.1.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 14.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: A py.test plugin that re-runs failed tests to eliminate flakey failures
|
|
|
|
|
|
|
|
|
|
License: MPLv2.0
|
|
|
|
|
URL: https://github.com/pytest-dev/%{srcname}
|
|
|
|
|
Source0: https://github.com/pytest-dev/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate
|
|
|
|
|
intermittent failures.
|
|
|
|
|
intermittent failures.}
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest >= 5.0
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools >= 40.0
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
|
|
%if %{undefined __pythondist_requires}
|
|
|
|
|
Requires: python%{python3_pkgversion}-pytest >= 5.0
|
|
|
|
|
Requires: python%{python3_pkgversion}-setuptools >= 40.0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate
|
|
|
|
|
intermittent failures.
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname} %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires %{?with_tests: -t}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files -l pytest_rerunfailures
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} test_pytest_rerunfailures.py
|
|
|
|
|
%tox
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
|
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
|
%{python3_sitelib}/pytest_rerunfailures.py
|
|
|
|
|
%{python3_sitelib}/__pycache__/pytest_rerunfailures.cpython-*
|
|
|
|
|
%{python3_sitelib}/pytest_rerunfailures-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Sep 27 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 9.1.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
* Sat Dec 28 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 14.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 14.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 17 2024 Scott K Logan <logans@cottsay.net> - 14.0-1
|
|
|
|
|
- Update to 14.0 (rhbz#2251442)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 12.0-5
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 12.0-4
|
|
|
|
|
- Bootstrap for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Scott K Logan <logans@cottsay.net> - 12.0-1
|
|
|
|
|
- Update to 12.0 (rhbz#2168740)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 11.0-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 11.0-3
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 11.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 17 2023 Scott K Logan <logans@cottsay.net> - 11.0-1
|
|
|
|
|
- Update to 11.0 (rhbz#2160820)
|
|
|
|
|
|
|
|
|
|
* Tue Nov 22 2022 Scott K Logan <logans@cottsay.net> - 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 <releng@fedoraproject.org> - 10.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 10.2-3
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 10.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 11 2022 Scott K Logan <logans@cottsay.net> - 10.2-1
|
|
|
|
|
- Update to 10.2 (rhbz#1965106)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.1.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 9.1.1-3
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|