From a9b4eab596e2f96143e0a4626d94993dba82f4c3b189193daa711928361b872d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 Sep 2022 08:42:20 +0000 Subject: [PATCH] Accepting request 1005955 from systemsmanagement:ansible OBS-URL: https://build.opensuse.org/request/show/1005955 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=53 --- jsonschema-4.10.3.tar.gz | 3 ++ jsonschema-4.8.0.tar.gz | 3 -- python-jsonschema.changes | 58 +++++++++++++++++++++++++++++++++++++++ python-jsonschema.spec | 13 +++++++-- 4 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 jsonschema-4.10.3.tar.gz delete mode 100644 jsonschema-4.8.0.tar.gz diff --git a/jsonschema-4.10.3.tar.gz b/jsonschema-4.10.3.tar.gz new file mode 100644 index 0000000..58969b5 --- /dev/null +++ b/jsonschema-4.10.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59ad13764820eb9d2cafc6db32e92fabd318c1e4e3f2205e646225283704a2c3 +size 285507 diff --git a/jsonschema-4.8.0.tar.gz b/jsonschema-4.8.0.tar.gz deleted file mode 100644 index fbe2362..0000000 --- a/jsonschema-4.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1d410e379b210ba903bee6adf3fce6d5204cea4c2b622d63f914d2dbfef0993 -size 279424 diff --git a/python-jsonschema.changes b/python-jsonschema.changes index 1d53ac8..c77b9dd 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Mon Sep 26 05:00:38 UTC 2022 - Johannes Kastl + +- update to 4.10.3: + - jsonschema.validators.validator_for now properly uses the explicitly + provided default validator even if the $schema URI is not found. + +------------------------------------------------------------------- +Mon Sep 26 04:56:19 UTC 2022 - Johannes Kastl + +- update to 4.10.2: + - Fix a second place where subclasses may have added attrs attributes (#982). + +------------------------------------------------------------------- +Sun Sep 25 17:47:32 UTC 2022 - Johannes Kastl + +- update to 4.10.1: + - Fix Validator.evolve (and APIs like iter_errors which call it) for cases + where the validator class has been subclassed. Doing so wasn't intended to be + public API, but given it didn't warn or raise an error it's of course + understandable. The next release however will make it warn (and a future one + will make it error). If you need help migrating usage of inheriting from a + validator class feel free to open a discussion and I'll try to give some + guidance (#982). + +------------------------------------------------------------------- +Sun Sep 25 17:37:47 UTC 2022 - Johannes Kastl + +- accept SR#1005905 to convert this to using Twisted instead of + pytest + +------------------------------------------------------------------- +Sun Sep 25 07:37:16 UTC 2022 - Johannes Kastl + +- update to 4.10.0: + Add support for referencing schemas with $ref across different versions + of the specification than the referrer's + +------------------------------------------------------------------- +Sun Sep 25 07:34:59 UTC 2022 - Johannes Kastl + +- update to 4.9.1: + Update some documentation examples to use newer validator releases in their + sample code. + +------------------------------------------------------------------- +Sun Sep 25 07:31:57 UTC 2022 - Johannes Kastl + +- update to 4.9.0: + - Fix relative $ref resolution when the base URI is a URN or other scheme (#544). + - pkgutil.resolve_name is now used to retrieve validators + provided on the command line. This function is only available on + 3.9+, so 3.7 and 3.8 (which are still supported) now rely on the + pkgutil_resolve_name _ + backport package. Note however that the CLI itself is due + to be deprecated shortly in favor of check-jsonschema + _. + ------------------------------------------------------------------- Fri Jul 29 06:28:16 UTC 2022 - Johannes Kastl diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 940f2b0..8f6791c 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -25,7 +25,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-jsonschema -Version: 4.8.0 +Version: 4.10.3 Release: 0 Summary: An implementation of JSON-Schema validation for Python License: MIT @@ -45,10 +45,12 @@ BuildRequires: %{python_module wheel} BuildRequires: %{python_module attrs >= 17.4.0} BuildRequires: %{python_module importlib-metadata if %python-base < 3.8} BuildRequires: %{python_module importlib-resources >= 1.4.0 if %python-base < 3.9} +BuildRequires: %{python_module pkgutil-resolve-name if %python-base < 3.9} BuildRequires: %{python_module pyrsistent >= 0.14.0} BuildRequires: %{python_module typing-extensions if %python-base < 3.8} # SECTION test -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module Twisted} +BuildRequires: git-core # /SECTION # SECTION extras (if available) #BuildRequires: %%{python_module fqdn} @@ -70,6 +72,7 @@ Requires: python-typing-extensions %endif %if 0%{python_version_nodots} < 39 Requires: python-importlib-resources >= 1.4.0 +Requires: python-pkgutil-resolve-name >= 1.3.10 %endif %if %{with libalternatives} Requires: alts @@ -102,7 +105,11 @@ for Python (supporting 2.6+ including Python 3). %python_clone -a %{buildroot}%{_bindir}/jsonschema %check -%pytest jsonschema/tests +export JSON_SCHEMA_TEST_SUITE=$PWD/json +%{python_expand # see tox.ini +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -B -m twisted.trial jsonschema +} %pre # If libalternatives is used: Removing old update-alternatives entries.