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
This commit is contained in:
Markéta Machová 2022-09-26 08:42:20 +00:00 committed by Git OBS Bridge
parent 062fda5a3d
commit a9b4eab596
4 changed files with 71 additions and 6 deletions

3
jsonschema-4.10.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59ad13764820eb9d2cafc6db32e92fabd318c1e4e3f2205e646225283704a2c3
size 285507

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1d410e379b210ba903bee6adf3fce6d5204cea4c2b622d63f914d2dbfef0993
size 279424

View File

@ -1,3 +1,61 @@
-------------------------------------------------------------------
Mon Sep 26 05:00:38 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- 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 <kastl@b1-systems.de>
- 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 <kastl@b1-systems.de>
- 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 <kastl@b1-systems.de>
- accept SR#1005905 to convert this to using Twisted instead of
pytest
-------------------------------------------------------------------
Sun Sep 25 07:37:16 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- 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 <kastl@b1-systems.de>
- 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 <kastl@b1-systems.de>
- 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 <https://pypi.org/project/pkgutil_resolve_name/>_
backport package. Note however that the CLI itself is due
to be deprecated shortly in favor of check-jsonschema
<https://github.com/python-jsonschema/check-jsonschema>_.
-------------------------------------------------------------------
Fri Jul 29 06:28:16 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -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.