forked from pool/python-testtools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
2a188312dd
commit
dad6ee9f49
@@ -16,6 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# A build cycle exists between python-extras and python-testtools. Thus, only
|
||||||
|
# enable testing with a build conditional (off by default):
|
||||||
|
%bcond_with tests
|
||||||
|
|
||||||
Name: python-testtools
|
Name: python-testtools
|
||||||
Version: 0.9.32
|
Version: 0.9.32
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -28,8 +32,10 @@ BuildRequires: python-devel
|
|||||||
# Documentation requirements:
|
# Documentation requirements:
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-Sphinx
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
|
%if %{with tests}
|
||||||
BuildRequires: python-extras
|
BuildRequires: python-extras
|
||||||
BuildRequires: python-python-mimeparse
|
BuildRequires: python-python-mimeparse
|
||||||
|
%endif
|
||||||
Requires: python-extras
|
Requires: python-extras
|
||||||
Requires: python-python-mimeparse
|
Requires: python-python-mimeparse
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -40,9 +46,9 @@ BuildArch: noarch
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
testtools is a set of extensions to the Python standard library's unit testing
|
testtools is a set of extensions to the Python standard library's unit tests
|
||||||
framework. These extensions have been derived from many years of experience
|
framework. These extensions have been derived from many years of experience
|
||||||
with unit testing in Python and come from many different sources. testtools
|
with unit tests in Python and come from many different sources. testtools
|
||||||
also ports recent unittest changes all the way back to Python 2.4.
|
also ports recent unittest changes all the way back to Python 2.4.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@@ -55,8 +61,10 @@ python setup.py build_sphinx
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
python setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Reference in New Issue
Block a user