|
|
|
@ -1,10 +1,11 @@
|
|
|
|
|
%global pypi_name pytest-timeout
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 2.1.0
|
|
|
|
|
Name: python-pytest-timeout
|
|
|
|
|
Version: 2.3.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: py.test plugin to abort hanging tests
|
|
|
|
|
|
|
|
|
|
# SPDX
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pytest-dev/pytest-timeout
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
@ -12,10 +13,6 @@ Source0: %{pypi_source}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: %{py3_dist pexpect}
|
|
|
|
|
BuildRequires: %{py3_dist pytest} >= 3.6.0
|
|
|
|
|
BuildRequires: %{py3_dist pytest-cov}
|
|
|
|
|
BuildRequires: %{py3_dist setuptools}
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
This is a plugin which will terminate tests after a certain timeout. When doing
|
|
|
|
@ -25,32 +22,69 @@ know why the test suite hangs.}
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
%package -n python3-pytest-timeout
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
|
%description -n python3-pytest-timeout %_description
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
%autosetup -p1 -n pytest-timeout-%{version}
|
|
|
|
|
# python-ipdb FTBFS currently
|
|
|
|
|
sed -i -e '/\s*ipdb$/d' tox.ini
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -t
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files -l pytest_timeout
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
%tox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%files -n python3-pytest-timeout -f %{pyproject_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/pytest_timeout*
|
|
|
|
|
%{python3_sitelib}/__pycache__/pytest_timeout*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Dec 28 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.3.1-4
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Tue Aug 06 2024 Scott Talbert <swt@techie.net> - 2.3.1-4
|
|
|
|
|
- Update License tag to use SPDX identifiers
|
|
|
|
|
- Modernize Python packaging
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.3.1-2
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Mar 08 2024 Scott Talbert <swt@techie.net> - 2.3.1-1
|
|
|
|
|
- Update to new upstream release 2.3.1 (#2268509)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|