Blame python-pytest-timeout.spec

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}
b0616a5
Version:        1.2.0
b0616a5
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
f005994
BuildRequires:  python2-pytest
f005994
BuildRequires:  python3-devel
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
f005994
Requires:       python-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
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.