f005994
%global pypi_name pytest-timeout
f005994
%global desc This is a plugin which will terminate tests after a certain timeout. When doing\
f005994
so it will show a stack dump of all threads running at the time. This is useful\
f005994
when running tests under a continuous integration server or simply if you don’t\
f005994
know why the test suite hangs.
f005994
f005994
Name:           python-%{pypi_name}
f36fea2
Version:        1.3.1
f36fea2
Release:        1%{?dist}
f005994
Summary:        py.test plugin to abort hanging tests
f005994
f005994
License:        MIT
f005994
URL:            https://bitbucket.org/pytest-dev/pytest-timeout/
f005994
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f005994
BuildArch:      noarch
f005994
f005994
BuildRequires:  python2-devel
c933894
BuildRequires:  python2-pexpect
f005994
BuildRequires:  python2-pytest
f005994
BuildRequires:  python3-devel
c933894
BuildRequires:  python3-pexpect
b0616a5
BuildRequires:  python3-pytest
f005994
f005994
%description
f005994
%{desc}
f005994
f005994
%package -n     python2-%{pypi_name}
f005994
Summary:        %{summary}
f005994
%{?python_provide:%python_provide python2-%{pypi_name}}
f005994
c5b1316
Requires:       python2-pytest
f005994
%description -n python2-%{pypi_name}
f005994
%{desc}
f005994
f005994
%package -n     python3-%{pypi_name}
f005994
Summary:        %{summary}
f005994
%{?python_provide:%python_provide python3-%{pypi_name}}
f005994
f005994
Requires:       python3-pytest
f005994
%description -n python3-%{pypi_name}
f005994
%{desc}
f005994
f005994
%prep
f005994
%autosetup -n %{pypi_name}-%{version}
f005994
f005994
%build
f005994
%py2_build
f005994
%py3_build
f005994
f005994
%install
f005994
%py2_install
f005994
%py3_install
f005994
b0616a5
%check
b0616a5
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version}
b0616a5
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
b0616a5
f005994
f005994
%files -n python2-%{pypi_name}
f005994
%doc README
f005994
%license LICENSE
f005994
%{python2_sitelib}/pytest_timeout*
b0616a5
%{python2_sitelib}/__pycache__/pytest_timeout*
f005994
f005994
%files -n python3-%{pypi_name}
f005994
%doc README
f005994
%license LICENSE
f005994
%{python3_sitelib}/pytest_timeout*
f005994
%{python3_sitelib}/__pycache__/pytest_timeout*
f005994
f005994
%changelog
f36fea2
* Tue Jul 24 2018 Scott Talbert <swt@techie.net> - 1.3.1-1
f36fea2
- New upstream release 1.3.1
f36fea2
9799b38
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
9799b38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9799b38
6d69f09
* Wed Jun 27 2018 Scott Talbert <swt@techie.net> - 1.3.0-1
6d69f09
- New upstream release 1.3.0
6d69f09
b3cb975
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-2
b3cb975
- Rebuilt for Python 3.7
b3cb975
541de5e
* Wed Jun 13 2018 Scott Talbert <swt@techie.net> - 1.2.1-1
541de5e
- New upstream release 1.2.1 (fixes FTBFS #1590256)
541de5e
0bb119b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
0bb119b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0bb119b
c5b1316
* Fri Jul 28 2017 Scott Talbert <swt@techie.net> - 1.2.0-3
c5b1316
- Updated to use versioned dependency name
c5b1316
e3674dc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
e3674dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e3674dc
b0616a5
* Wed May 10 2017 Scott Talbert <swt@techie.net> - 1.2.0-1
b0616a5
- New upstream release 1.2.0
b0616a5
- Enable tests
b0616a5
69ccc97
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
69ccc97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
69ccc97
6bf6117
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.0.0-2
6bf6117
- Rebuild for Python 3.6
6bf6117
f005994
* Thu Aug 11 2016 Scott Talbert <swt@techie.net> - 1.0.0-1
f005994
- Initial package.