forked from pool/python-testtools
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:
committed by
Git OBS Bridge
parent
8f9e912be4
commit
61e5d6feb8
@@ -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,9 +26,12 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/testing-cabal/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 extras >= 1.0.0}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module traceback2}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-extras >= 1.0.0
|
||||
@@ -36,7 +39,6 @@ Requires: python-pbr >= 0.11
|
||||
Requires: python-python-mimeparse
|
||||
Requires: python-six >= 1.4.0
|
||||
Requires: python-traceback2
|
||||
Requires: python-unittest2 >= 1.1.0
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||
Recommends: python-fixtures >= 1.3.0
|
||||
@@ -51,15 +53,18 @@ also ports recent unittest changes all the way back to Python 2.4.
|
||||
|
||||
%prep
|
||||
%setup -q -n testtools-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
%{python_expand \
|
||||
$python -m compileall -d %{$python_sitelib} -x _compat2x %{buildroot}%{$python_sitelib}/testtools/
|
||||
$python -O -m compileall -d %{$python_sitelib} -x _compat2x %{buildroot}%{$python_sitelib}/testtools/
|
||||
%fdupes -s %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user