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}
f005994
Version:        1.0.0
f005994
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
f005994
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
f005994
f005994
%files -n python2-%{pypi_name}
f005994
%doc README
f005994
%license LICENSE
f005994
%{python2_sitelib}/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
f005994
* Thu Aug 11 2016 Scott Talbert <swt@techie.net> - 1.0.0-1
f005994
- Initial package.