|
|
|
@ -1,8 +1,4 @@
|
|
|
|
|
%global pypi_name pytest-timeout
|
|
|
|
|
%global desc This is a plugin which will terminate tests after a certain timeout. When doing\
|
|
|
|
|
so it will show a stack dump of all threads running at the time. This is useful\
|
|
|
|
|
when running tests under a continuous integration server or simply if you don’t\
|
|
|
|
|
know why the test suite hangs.
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 1.4.1
|
|
|
|
@ -11,24 +7,28 @@ Summary: py.test plugin to abort hanging tests
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pytest-dev/pytest-timeout
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pexpect
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: %{py3_dist pexpect}
|
|
|
|
|
BuildRequires: %{py3_dist pytest} >= 3.6.0
|
|
|
|
|
BuildRequires: %{py3_dist pytest-cov}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{desc}
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
This is a plugin which will terminate tests after a certain timeout. When doing
|
|
|
|
|
so it will show a stack dump of all threads running at the time. This is useful
|
|
|
|
|
when running tests under a continuous integration server or simply if you don’t
|
|
|
|
|
know why the test suite hangs.}
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
Requires: python3-pytest
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
%{desc}
|
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
@ -52,6 +52,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{py
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 16 2020 Scott Talbert <swt@techie.net> - 1.4.1-1
|
|
|
|
|
- Update to new upstream release 1.4.1 (#1846923)
|
|
|
|
|
- Modernize packaging
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.4-3
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|