Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jmespath for openSUSE:Factory
checked in at 2021-09-30 23:42:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jmespath (Old)
and /work/SRC/openSUSE:Factory/.python-jmespath.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jmespath"
Thu Sep 30 23:42:55 2021 rev:19 rq:921548 version:0.10.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jmespath/python-jmespath.changes
2021-06-13 23:05:37.523612400 +0200
+++
/work/SRC/openSUSE:Factory/.python-jmespath.new.2443/python-jmespath.changes
2021-09-30 23:43:10.060453737 +0200
@@ -1,0 +2,6 @@
+Mon Sep 27 03:03:07 UTC 2021 - Steve Kowalik <[email protected]>
+
+- Add patch remove-nose.patch:
+ * Remove use of nose in the tests.
+
+-------------------------------------------------------------------
New:
----
remove-nose.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jmespath.spec ++++++
--- /var/tmp/diff_new_pack.Jxjng9/_old 2021-09-30 23:43:10.484454222 +0200
+++ /var/tmp/diff_new_pack.Jxjng9/_new 2021-09-30 23:43:10.488454228 +0200
@@ -22,12 +22,11 @@
Release: 0
Summary: Python module for declarative JSON document element extraction
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/jmespath/jmespath.py
Source:
https://github.com/jmespath/jmespath.py/archive/refs/tags/%{version}.tar.gz#/jmespath-%{version}.tar.gz
+Patch0: remove-nose.patch
# Testing
BuildRequires: %{python_module hypothesis}
-BuildRequires: %{python_module nose}
BuildRequires: %{python_module ply >= 3.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module simplejson}
@@ -73,6 +72,7 @@
%prep
%setup -q -n jmespath.py-%{version}
+%autopatch -p1
%build
%python_build
++++++ remove-nose.patch ++++++
Index: jmespath.py-0.10.0/extra/test_hypothesis.py
===================================================================
--- jmespath.py-0.10.0.orig/extra/test_hypothesis.py
+++ jmespath.py-0.10.0/extra/test_hypothesis.py
@@ -6,7 +6,6 @@ import os
import sys
import numbers
-from nose.plugins.skip import SkipTest
from hypothesis import given, settings, assume, HealthCheck
import hypothesis.strategies as st
Index: jmespath.py-0.10.0/tests/test_compliance.py
===================================================================
--- jmespath.py-0.10.0.orig/tests/test_compliance.py
+++ jmespath.py-0.10.0/tests/test_compliance.py
@@ -3,8 +3,6 @@ from pprint import pformat
from tests import OrderedDict
from tests import json
-from nose.tools import assert_equal
-
from jmespath.visitor import Options
@@ -80,7 +78,7 @@ def _test_expression(given, expression,
actual_repr, pformat(parsed.parsed),
json.dumps(given, indent=4)))
error_msg = error_msg.replace(r'\n', '\n')
- assert_equal(actual, expected, error_msg)
+ assert actual == expected, error_msg
def _test_error_expression(given, expression, error, filename):