forked from pool/python-testtools
Accepting request 487994 from home:TheBlackCat:branches:devel:languages:python
Fix python-fixtures dependency loop. OBS-URL: https://build.opensuse.org/request/show/487994 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=44
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-testtools-doc
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
@@ -24,14 +25,12 @@ License: MIT
|
||||
Group: Documentation/HTML
|
||||
Url: https://launchpad.net/testtools
|
||||
Source: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
|
||||
BuildRequires: python-testtools = %{version}
|
||||
BuildRequires: python3-testtools = %{version}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module testtools = %{version}}
|
||||
%if %{with tests}
|
||||
# Test requirement
|
||||
BuildRequires: python-testscenarios
|
||||
BuildRequires: python3-testscenarios
|
||||
BuildRequires: python-unittest2 >= 0.8.0
|
||||
BuildRequires: python3-unittest2 >= 0.8.0
|
||||
BuildRequires: %{python_module testscenarios = %{version}}
|
||||
BuildRequires: %{python_module unittest2 >= 0.8.0}
|
||||
%endif
|
||||
# Documentation requirements:
|
||||
BuildRequires: fdupes
|
||||
@@ -59,8 +58,7 @@ cp -r build/sphinx/html %{buildroot}%{_docdir}/python-testtools/
|
||||
# Doing the tests in a separate package avoids this cycle.
|
||||
%if %{with tests}
|
||||
%check
|
||||
python2 -m testtools.run testtools.tests.test_suite
|
||||
python3 -m testtools.run testtools.tests.test_suite
|
||||
%{python_exec} -m testtools.run testtools.tests.test_suite
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Reference in New Issue
Block a user