- update to 2.3.0: * Release 2.3.0 * Add ResourcedToStreamDecorator test result decorator for testresources integration (#243) * Make KeysEqual usable with no arguments, i.e. match a dict with no keys. (#241) * Add testtools.assertions to the documented API modules (#257) * Add Python 3.6 to the list of Travis targets (#255) * Don't add file details without content (#252) * Don't run Sphinx on Travis Python 3.3 target (#250) * Make twistedsupport and tests work on Python 3 - update to 2.3.0: * Release 2.3.0 * Add ResourcedToStreamDecorator test result decorator for testresources integration (#243) * Make KeysEqual usable with no arguments, i.e. match a dict with no keys. (#241) * Add testtools.assertions to the documented API modules (#257) * Add Python 3.6 to the list of Travis targets (#255) * Don't add file details without content (#252) * Don't run Sphinx on Travis Python 3.3 target (#250) * Make twistedsupport and tests work on Python 3 OBS-URL: https://build.opensuse.org/request/show/507958 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=50
70 lines
2.2 KiB
RPMSpec
70 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-testtools-doc
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-testtools-doc
|
|
Version: 2.3.0
|
|
Release: 0
|
|
Summary: Documentation for python-testtools
|
|
License: MIT
|
|
Group: Documentation/HTML
|
|
Url: https://launchpad.net/testtools
|
|
Source: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
|
|
BuildRequires: %{python_module testtools = %{version}}
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with tests}
|
|
# Test requirement
|
|
BuildRequires: %{python_module testscenarios = %{version}}
|
|
BuildRequires: %{python_module unittest2 >= 0.8.0}
|
|
%endif
|
|
# Documentation requirements:
|
|
BuildRequires: fdupes
|
|
BuildRequires: python3-Sphinx
|
|
Provides: python2-testtools-doc = %{version}
|
|
Provides: python3-testtools-doc = %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Documentation and help files for python-testtools.
|
|
|
|
%prep
|
|
%setup -q -n testtools-%{version}
|
|
|
|
%build
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_docdir}/python-testtools/
|
|
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-testtools/
|
|
%fdupes %{buildroot}%{_docdir}
|
|
|
|
# A build cycle exists between python-extras and python-testtools.
|
|
# Doing the tests in a separate package avoids this cycle.
|
|
%if %{with tests}
|
|
%check
|
|
%{python_exec} -m testtools.run testtools.tests.test_suite
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{_docdir}/python-testtools/
|
|
|
|
%changelog
|