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}
0688be3
Version:        1.3.3
9b9daef
Release:        3%{?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
9b9daef
9b9daef
# Support Pytest 4
9b9daef
Patch1:         %{url}commits/36998c891573d8ec1db1acd4f9438cb3cf2aee2e/raw#/pytest4.patch
9b9daef
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
9b9daef
%autosetup -p1 -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
37f543e
PYTHONPATH=%{buildroot}%{python2_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python2_version}
37f543e
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version}
b0616a5
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
9b9daef
* Thu Apr 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.3-3
9b9daef
- Add upstream patch for pytest 4 compatibility
9b9daef
5870ead
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
5870ead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5870ead
0688be3
* Fri Jan 25 2019 Scott Talbert <swt@techie.net> - 1.3.3-1
0688be3
- New upstream release 1.3.3
0688be3
769d129
* Tue Oct 23 2018 Scott Talbert <swt@techie.net> - 1.3.2-1
769d129
- New upstream release 1.3.2
769d129
37f543e
* Fri Sep 14 2018 Scott Talbert <swt@techie.net> - 1.3.1-2
37f543e
- Disable writing bytecode when running tests to avoid packaging pycache files
37f543e
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.