Remove the python-nose dependency
Replace by pytest Resolves: rhbz1916775
This commit is contained in:
parent
1311d39579
commit
0f6cd577ee
13
nonose.patch
Normal file
13
nonose.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -up jmespath-0.9.4/tests/test_compliance.py.orig jmespath-0.9.4/tests/test_compliance.py
|
||||
--- jmespath-0.9.4/tests/test_compliance.py.orig 2017-05-13 19:21:34.000000000 +0200
|
||||
+++ jmespath-0.9.4/tests/test_compliance.py 2021-06-29 11:34:10.355125102 +0200
|
||||
@@ -3,7 +3,8 @@ from pprint import pformat
|
||||
from tests import OrderedDict
|
||||
from tests import json
|
||||
|
||||
-from nose.tools import assert_equal
|
||||
+import unittest
|
||||
+assert_equal = unittest.TestCase().assertEqual
|
||||
|
||||
from jmespath.visitor import Options
|
||||
|
@ -10,6 +10,8 @@ URL: https://github.com/jmespath/jmespath.py
|
||||
Source0: https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Patch: nonose.patch
|
||||
|
||||
%description
|
||||
JMESPath allows you to declaratively specify how to extract elements from
|
||||
a JSON document.
|
||||
@ -20,8 +22,8 @@ Summary: JSON Matching Expressions
|
||||
%{?python_provide:%python_provide python-%{pypi_name}}
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
Obsoletes: python2-jmespath < 0.9.4-2
|
||||
|
||||
@ -31,6 +33,7 @@ a JSON document.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
%patch -p1
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
||||
%build
|
||||
@ -40,7 +43,7 @@ rm -rf %{pypi_name}.egg-info
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
nosetests-%{python3_version}
|
||||
%pytest
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%doc README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user