14
0
forked from pool/python-nose2

Accepting request 702903 from home:scarabeus_iv:branches:devel:languages:python

- Add patch to fix build with new mock versions:
  * fix-mock-dep.patch

OBS-URL: https://build.opensuse.org/request/show/702903
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal
2019-05-14 17:13:21 +00:00
committed by Git OBS Bridge
parent a9c3b7d61e
commit bf9ebaf7b3
3 changed files with 21 additions and 1 deletions

13
fix-mock-dep.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: nose2-0.9.1/setup.py
===================================================================
--- nose2-0.9.1.orig/setup.py
+++ nose2-0.9.1/setup.py
@@ -32,7 +32,7 @@ setup(
# mock on py2, py3.4 and py3.5
# not just py2: py3 versions of mock don't all have the same
# interface and this can cause issues
- 'mock==2.0.0;python_version<"3.6"',
+ 'mock>=2.0.0;python_version<"3.6"',
],
extras_require={
"coverage_plugin": ["coverage>=4.4.1"],

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 14 17:02:07 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to fix build with new mock versions:
* fix-mock-dep.patch
-------------------------------------------------------------------
Mon Apr 8 11:19:14 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -26,6 +26,7 @@ Group: Development/Languages/Python
URL: https://github.com/nose-devs/nose2
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
Patch0: remove_unittest2.patch
Patch1: fix-mock-dep.patch
BuildRequires: %{python_module cov-core >= 1.12}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
@@ -62,7 +63,7 @@ is to be done through config files, not command-line options.
%python_clone -a %{buildroot}%{_bindir}/nose2
%check
export LC_CTYPE=C.UTF8
export LC_CTYPE=C.UTF8
%python_exec setup.py test
%post