14
0

Accepting request 645918 from home:mcepl:work

- Remove requirements of unittest2 and linecache2 adding two
  additional patches remove-linecache2.patch and
  remove-unittest2.patch.

OBS-URL: https://build.opensuse.org/request/show/645918
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=61
This commit is contained in:
Tomáš Chvátal
2018-11-02 08:20:44 +00:00
committed by Git OBS Bridge
parent 8f9e912be4
commit 61e5d6feb8
6 changed files with 162 additions and 7 deletions

View File

@@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -26,13 +26,17 @@ Group: Documentation/HTML
URL: https://launchpad.net/testtools
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
Patch0: testtools-py37.patch
Patch1: remove-unittest2.patch
Patch2: remove-linecache2.patch
BuildRequires: %{python_module testscenarios}
BuildRequires: %{python_module testtools = %{version}}
BuildRequires: %{python_module traceback2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
Provides: python2-testtools-doc = %{version}
Provides: python3-testtools-doc = %{version}
Requires: python-traceback2
BuildArch: noarch
%description
@@ -40,7 +44,7 @@ Documentation and help files for python-testtools.
%prep
%setup -q -n testtools-%{version}
%patch0 -p1
%autopatch -p1
%build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo