15
0
forked from pool/python-case

Remove dependency on unittest2

Add remove_unittest2.patch to facilitate that

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-case?expand=0&rev=4
This commit is contained in:
2018-08-13 14:07:39 +00:00
committed by Git OBS Bridge
parent e90e1b4f4c
commit e95384ab07
3 changed files with 47 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-case
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -23,25 +23,21 @@ Release: 0
Summary: Python unittest Utilities
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/celery/case
Source: https://pypi.io/packages/source/c/case/case-%{version}.tar.gz
URL: http://github.com/celery/case
Source: https://files.pythonhosted.org/packages/source/c/case/case-%{version}.tar.gz
Patch: remove_unittest2.patch
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-unittest2
Requires: python-mock >= 2.0
Requires: python-nose >= 1.3.7
Requires: python-setuptools
Requires: python-six
%ifpython2
Requires: python-unittest2 >= 0.5.1
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -49,19 +45,21 @@ Python unittest Utilities
%prep
%setup -q -n case-%{version}
%autopatch -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %python_files
%defattr(-,root,root,-)
%doc Changelog LICENSE README.rst
%files %{python_files}
%license LICENSE
%doc Changelog README.rst
%{python_sitelib}/*
%changelog