Modernize packaging
This commit is contained in:
parent
96f4a3950d
commit
8b1e16e563
@ -1,8 +1,4 @@
|
|||||||
%global pypi_name pytest-timeout
|
%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}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.4.1
|
Version: 1.4.1
|
||||||
@ -11,24 +7,28 @@ Summary: py.test plugin to abort hanging tests
|
|||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pytest-dev/pytest-timeout
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pexpect
|
BuildRequires: %{py3_dist pexpect}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: %{py3_dist pytest} >= 3.6.0
|
||||||
|
BuildRequires: %{py3_dist pytest-cov}
|
||||||
|
|
||||||
%description
|
%global _description %{expand:
|
||||||
%{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.}
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
|
|
||||||
Requires: python3-pytest
|
%description -n python3-%{pypi_name} %_description
|
||||||
%description -n python3-%{pypi_name}
|
|
||||||
%{desc}
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
@ -52,6 +52,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{py
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 16 2020 Scott Talbert <swt@techie.net> - 1.4.1-1
|
* Tue Jun 16 2020 Scott Talbert <swt@techie.net> - 1.4.1-1
|
||||||
- Update to new upstream release 1.4.1 (#1846923)
|
- 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
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.4-3
|
||||||
- Rebuilt for Python 3.9
|
- Rebuilt for Python 3.9
|
||||||
|
Loading…
Reference in New Issue
Block a user