|
|
|
@ -1,23 +1,19 @@
|
|
|
|
|
%global pypi_name pytest-timeout
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 1.4.2
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 2.2.0
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: py.test plugin to abort hanging tests
|
|
|
|
|
|
|
|
|
|
# SPDX
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pytest-dev/pytest-timeout
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
|
|
# This patch skips 3 tests out of 38 because of missing dependency
|
|
|
|
|
# python-pexpect in RHEL 9
|
|
|
|
|
Patch1: 0001-Remove-test-only-dependency-pexpect.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: %{py3_dist pytest} >= 3.6.0
|
|
|
|
|
BuildRequires: %{py3_dist setuptools}
|
|
|
|
|
BuildRequires: %{py3_dist pexpect}
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
This is a plugin which will terminate tests after a certain timeout. When doing
|
|
|
|
@ -36,14 +32,17 @@ Summary: %{summary}
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest -k "not test_cov"
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
@ -53,19 +52,61 @@ Summary: %{summary}
|
|
|
|
|
%{python3_sitelib}/__pycache__/pytest_timeout*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.2-7
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.2.0-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Tue Jun 15 2021 Tomas Orsava <torsava@redhat.com> - 1.4.2-6
|
|
|
|
|
- Remove test-dependency on python-pexpect
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.2.0-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.2-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 30 2021 Miro Hrončok <mhroncok@redhat.com> - 1.4.2-4
|
|
|
|
|
- Don't BuildRequire python3-pytest-cov
|
|
|
|
|
Resolves: rhbz#1945252
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2023 Scott Talbert <swt@techie.net> - 2.2.0-1
|
|
|
|
|
- Update to new upstream release 2.2.0 (#2242718)
|
|
|
|
|
- Modernize Python packaging
|
|
|
|
|
|
|
|
|
|
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 2.1.0-7
|
|
|
|
|
- Declare license as an SPDX expression
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.1.0-5
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.0-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Scott Talbert <swt@techie.net> - 2.1.0-1
|
|
|
|
|
- Update to new upstream release 2.1.0 (#2042161)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 14 2021 Scott Talbert <swt@techie.net> - 2.0.2-1
|
|
|
|
|
- Update to new upstream release 2.0.2 (#2032002)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 11 2021 Scott Talbert <swt@techie.net> - 2.0.1-1
|
|
|
|
|
- Update to new upstream release 2.0.1 (#2013023)
|
|
|
|
|
|
|
|
|
|
* Mon Oct 11 2021 Scott Talbert <swt@techie.net> - 2.0.0-1
|
|
|
|
|
- Update to new upstream release 2.0.0 (#2012634)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.4.2-4
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|