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:
committed by
Git OBS Bridge
parent
a9c3b7d61e
commit
bf9ebaf7b3
13
fix-mock-dep.patch
Normal file
13
fix-mock-dep.patch
Normal 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"],
|
@@ -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>
|
Mon Apr 8 11:19:14 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/nose-devs/nose2
|
URL: https://github.com/nose-devs/nose2
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
||||||
Patch0: remove_unittest2.patch
|
Patch0: remove_unittest2.patch
|
||||||
|
Patch1: fix-mock-dep.patch
|
||||||
BuildRequires: %{python_module cov-core >= 1.12}
|
BuildRequires: %{python_module cov-core >= 1.12}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module setuptools}
|
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
|
%python_clone -a %{buildroot}%{_bindir}/nose2
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_CTYPE=C.UTF8
|
export LC_CTYPE=C.UTF8
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Reference in New Issue
Block a user