- Add remove-nose.patch:
* Stop using nose to skip tests. - Adjust Requires from python-nose to python-pytest. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-case?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 15 04:38:57 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add remove-nose.patch:
|
||||
* Stop using nose to skip tests.
|
||||
- Adjust Requires from python-nose to python-pytest.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 16 06:43:43 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-case
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -27,11 +27,12 @@ URL: http://github.com/celery/case
|
||||
Source: https://files.pythonhosted.org/packages/source/c/case/case-%{version}.tar.gz
|
||||
Patch0: remove_unittest2.patch
|
||||
Patch1: remove_coverage.patch
|
||||
Patch2: remove-nose.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-mock >= 2.0
|
||||
Requires: python-nose >= 1.3.7
|
||||
Requires: python-pytest
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
|
||||
13
remove-nose.patch
Normal file
13
remove-nose.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: case-1.5.3/case/skip.py
|
||||
===================================================================
|
||||
--- case-1.5.3.orig/case/skip.py
|
||||
+++ case-1.5.3/case/skip.py
|
||||
@@ -4,7 +4,7 @@ import importlib
|
||||
import os
|
||||
import sys
|
||||
|
||||
-from nose import SkipTest
|
||||
+from unittest import SkipTest
|
||||
|
||||
from .utils import decorator, symbol_by_name
|
||||
|
||||
Reference in New Issue
Block a user