Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jsonschema for
openSUSE:Factory checked in at 2023-07-19 19:09:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old)
and /work/SRC/openSUSE:Factory/.python-jsonschema.new.5570 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonschema"
Wed Jul 19 19:09:49 2023 rev:40 rq:1099226 version:4.18.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes
2023-07-14 15:35:49.802002021 +0200
+++
/work/SRC/openSUSE:Factory/.python-jsonschema.new.5570/python-jsonschema.changes
2023-07-19 19:09:51.688295027 +0200
@@ -1,0 +2,7 @@
+Tue Jul 18 09:05:26 UTC 2023 - Johannes Kastl <[email protected]>
+
+- update to 4.18.4:
+ no changelog available, only a diff:
+ https://github.com/python-jsonschema/jsonschema/compare/v4.18.3...v4.18.4
+
+-------------------------------------------------------------------
Old:
----
jsonschema-4.18.3.tar.gz
New:
----
jsonschema-4.18.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonschema.spec ++++++
--- /var/tmp/diff_new_pack.O9fCX0/_old 2023-07-19 19:09:52.360298958 +0200
+++ /var/tmp/diff_new_pack.O9fCX0/_new 2023-07-19 19:09:52.364298981 +0200
@@ -33,7 +33,7 @@
%{?sle15_python_module_pythons}
Name: python-jsonschema%{psuffix}
-Version: 4.18.3
+Version: 4.18.4
Release: 0
Summary: An implementation of JSON-Schema validation for Python
License: MIT
++++++ jsonschema-4.18.3.tar.gz -> jsonschema-4.18.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonschema-4.18.3/.pre-commit-config.yaml
new/jsonschema-4.18.4/.pre-commit-config.yaml
--- old/jsonschema-4.18.3/.pre-commit-config.yaml 2020-02-02
01:00:00.000000000 +0100
+++ new/jsonschema-4.18.4/.pre-commit-config.yaml 2020-02-02
01:00:00.000000000 +0100
@@ -16,7 +16,7 @@
args: [--fix, lf]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: "v0.0.277"
+ rev: "v0.0.278"
hooks:
- id: ruff
- repo: https://github.com/PyCQA/isort
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonschema-4.18.3/CHANGELOG.rst
new/jsonschema-4.18.4/CHANGELOG.rst
--- old/jsonschema-4.18.3/CHANGELOG.rst 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema-4.18.4/CHANGELOG.rst 2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,8 @@
+v4.18.4
+=======
+
+* Improve the hashability of wrapped referencing exceptions when they contain
hashable data.
+
v4.18.3
=======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonschema-4.18.3/PKG-INFO
new/jsonschema-4.18.4/PKG-INFO
--- old/jsonschema-4.18.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema-4.18.4/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jsonschema
-Version: 4.18.3
+Version: 4.18.4
Summary: An implementation of JSON Schema validation for Python
Project-URL: Homepage, https://github.com/python-jsonschema/jsonschema
Project-URL: Documentation, https://python-jsonschema.readthedocs.io/
@@ -168,8 +168,7 @@
Release Information
-------------------
-v4.18.3
+v4.18.4
=======
-* Properly preserve ``applicable_validators`` in extended validators.
- Specifically, validators extending early drafts where siblings of ``$ref``
were ignored will properly ignore siblings in the extended validator.
+* Improve the hashability of wrapped referencing exceptions when they contain
hashable data.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jsonschema-4.18.3/jsonschema/exceptions.py
new/jsonschema-4.18.4/jsonschema/exceptions.py
--- old/jsonschema-4.18.3/jsonschema/exceptions.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jsonschema-4.18.4/jsonschema/exceptions.py 2020-02-02
01:00:00.000000000 +0100
@@ -230,6 +230,9 @@
def __getattr__(self, attr):
return getattr(self._wrapped, attr)
+ def __hash__(self):
+ return hash(self._wrapped)
+
def __repr__(self):
return f"<WrappedReferencingError {self._wrapped!r}>"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jsonschema-4.18.3/jsonschema/tests/test_deprecations.py
new/jsonschema-4.18.4/jsonschema/tests/test_deprecations.py
--- old/jsonschema-4.18.3/jsonschema/tests/test_deprecations.py 2020-02-02
01:00:00.000000000 +0100
+++ new/jsonschema-4.18.4/jsonschema/tests/test_deprecations.py 2020-02-02
01:00:00.000000000 +0100
@@ -211,6 +211,24 @@
(u.exception, "Unresolvable: urn:nothing")
)
+ def test_WrappedReferencingError_hashability(self):
+ """
+ Ensure the wrapped referencing errors are hashable when possible.
+ """
+ with self.assertWarns(DeprecationWarning):
+ from jsonschema import RefResolutionError
+
+ validator = validators.Draft202012Validator({"$ref": "urn:nothing"})
+
+ with self.assertRaises(referencing.exceptions.Unresolvable) as u:
+ validator.validate(12)
+
+ with self.assertRaises(RefResolutionError) as e:
+ validator.validate(12)
+
+ self.assertIn(e.exception, {u.exception})
+ self.assertIn(u.exception, {e.exception})
+
def test_Validator_subclassing(self):
"""
As of v4.12.0, subclassing a validator class produces an explicit