forked from pool/python-testtools
- Add patch to build with python 3.7:
* testtools-py37.patch - Remove unittest2 dependency, it is needed only on python2.6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=56
This commit is contained in:
committed by
Git OBS Bridge
parent
834a61cd29
commit
5962f9135b
@@ -23,9 +23,9 @@ Release: 0
|
||||
Summary: Extensions to the Python Standard Library Unit Testing Framework
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://launchpad.net/testtools
|
||||
Source: https://pypi.io/packages/source/t/testtools/testtools-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
URL: https://github.com/testing-cabal/testtools
|
||||
Source: https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
|
||||
Patch0: testtools-py37.patch
|
||||
BuildRequires: %{python_module extras >= 1.0.0}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -36,12 +36,10 @@ Requires: python-pbr >= 0.11
|
||||
Requires: python-python-mimeparse
|
||||
Requires: python-six >= 1.4.0
|
||||
Requires: python-traceback2
|
||||
Requires: python-unittest2 >= 1.0.0
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||
Recommends: python-fixtures >= 1.3.0
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -52,6 +50,7 @@ also ports recent unittest changes all the way back to Python 2.4.
|
||||
|
||||
%prep
|
||||
%setup -q -n testtools-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -61,8 +60,8 @@ also ports recent unittest changes all the way back to Python 2.4.
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE NEWS README.rst
|
||||
%license LICENSE
|
||||
%doc NEWS README.rst
|
||||
%{python_sitelib}/testtools
|
||||
%{python_sitelib}/testtools-%{version}-py*.egg-info
|
||||
|
||||
|
Reference in New Issue
Block a user