diff --git a/.gitignore b/.gitignore index e69de29..0fdd0b1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-timeout-1.0.0.tar.gz diff --git a/python-pytest-timeout.spec b/python-pytest-timeout.spec new file mode 100644 index 0000000..bc608b2 --- /dev/null +++ b/python-pytest-timeout.spec @@ -0,0 +1,66 @@ +%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.0.0 +Release: 1%{?dist} +Summary: py.test plugin to abort hanging tests + +License: MIT +URL: https://bitbucket.org/pytest-dev/pytest-timeout/ +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python2-pytest +BuildRequires: python3-devel +BuildRequires: python3-pytest + +%description +%{desc} + +%package -n python2-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{pypi_name}} + +Requires: python-pytest +%description -n python2-%{pypi_name} +%{desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-pytest +%description -n python3-%{pypi_name} +%{desc} + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + + +%files -n python2-%{pypi_name} +%doc README +%license LICENSE +%{python2_sitelib}/pytest_timeout* + +%files -n python3-%{pypi_name} +%doc README +%license LICENSE +%{python3_sitelib}/pytest_timeout* +%{python3_sitelib}/__pycache__/pytest_timeout* + +%changelog +* Thu Aug 11 2016 Scott Talbert - 1.0.0-1 +- Initial package. diff --git a/sources b/sources index e69de29..fb61fee 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f9f162bd079689980b5614673ddfdae4 pytest-timeout-1.0.0.tar.gz