pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-jsonschema



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Aug 25 21:35:08 UTC 2023

Modified Files:
        pkgsrc/textproc/py-jsonschema: Makefile PLIST distinfo

Log Message:
py-jsonschema: updated to 4.19.0

v4.19.0
=======

* Importing the ``Validator`` protocol directly from the package root is deprecated.
  Import it from ``jsonschema.protocols.Validator`` instead.
* Automatic retrieval of remote references (which is still deprecated) now properly succeeds even if the retrieved resource does not declare which version of JSON Schema it uses.
  Such resources are assumed to be 2020-12 schemas.
  This more closely matches the pre-referencing library behavior.

v4.18.6
=======

* Set a ``jsonschema`` specific user agent when automatically retrieving remote references (which is deprecated).

v4.18.5
=======

* Declare support for Py3.12

v4.18.4
=======

* Improve the hashability of wrapped referencing exceptions when they contain hashable data.

v4.18.3
=======

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

v4.18.2
=======

* Fix an additional regression with the deprecated ``jsonschema.RefResolver`` and pointer resolution.

v4.18.1
=======

* Fix a regression with ``jsonschema.RefResolver`` based resolution when used in combination with a custom validation dialect (via ``jsonschema.validators.create``).

v4.18.0
=======

This release majorly rehauls the way in which JSON Schema reference resolution is configured.
It does so in a way that *should* be backwards compatible, preserving old behavior whilst emitting deprecation warnings.

* ``jsonschema.RefResolver`` is now deprecated in favor of the new `referencing library <https://github.com/python-jsonschema/referencing/>`_.
  ``referencing`` will begin in beta, but already is more compliant than the existing ``$ref`` support.
  This change is a culmination of a meaningful chunk of work to make ``$ref`` resolution more flexible and more correct.
  Backwards compatibility *should* be preserved for existing code which uses ``RefResolver``, though doing so is again now deprecated, and all such use cases should be doable using the new APIs.
  Please file issues on the ``referencing`` tracker if there is functionality missing from it, or here on the ``jsonschema`` issue tracker if you have issues with existing code not functioning the 
same, or with figuring out how to change it to use ``referencing``.
  In particular, this referencing change includes a change concerning *automatic* retrieval of remote references (retrieving ``http://foo/bar`` automatically within a schema).
  This behavior has always been a potential security risk and counter to the recommendations of the JSON Schema specifications; it has survived this long essentially only for backwards compatibility 
reasons, and now explicitly produces warnings.
  The ``referencing`` library itself will *not* automatically retrieve references if you interact directly with it, so the deprecated behavior is only triggered if you fully rely on the default 
``$ref`` resolution behavior and also include remote references in your schema, which will still be retrieved during the deprecation period (after which they will become an error).
* Support for Python 3.7 has been dropped, as it is nearing end-of-life.
  This should not be a "visible" change in the sense that ``requires-python`` has been updated, so users using 3.7 should still receive ``v4.17.3`` when installing the library.
* On draft 2019-09, ``unevaluatedItems`` now properly does *not* consider items to be evaluated by an ``additionalItems`` schema if ``items`` is missing from the schema, as the specification says in 
this case that ``additionalItems`` must be completely ignored.
* Fix the ``date`` format checker on Python 3.11 (when format assertion behavior is enabled), where it was too liberal
* Speed up validation of ``unevaluatedProperties``

Deprecations
------------

* ``jsonschema.RefResolver`` -- see above for details on the replacement
* ``jsonschema.RefResolutionError`` -- see above for details on the replacement
* relying on automatic resolution of remote references -- see above for details on the replacement
* importing ``jsonschema.ErrorTree`` -- instead import it via ``jsonschema.exceptions.ErrorTree``
* importing ``jsonschema.FormatError`` -- instead import it via ``jsonschema.exceptions.FormatError``


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/textproc/py-jsonschema/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/textproc/py-jsonschema/PLIST
cvs rdiff -u -r1.19 -r1.20 pkgsrc/textproc/py-jsonschema/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-jsonschema/Makefile
diff -u pkgsrc/textproc/py-jsonschema/Makefile:1.33 pkgsrc/textproc/py-jsonschema/Makefile:1.34
--- pkgsrc/textproc/py-jsonschema/Makefile:1.33 Wed Mar 29 09:34:13 2023
+++ pkgsrc/textproc/py-jsonschema/Makefile      Fri Aug 25 21:35:08 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.33 2023/03/29 09:34:13 wiz Exp $
+# $NetBSD: Makefile,v 1.34 2023/08/25 21:35:08 adam Exp $
 
-DISTNAME=      jsonschema-4.17.3
+DISTNAME=      jsonschema-4.19.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=j/jsonschema/}
@@ -13,9 +13,10 @@ LICENSE=     modified-bsd
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
 TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
-DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
-DEPENDS+=      ${PYPKGPREFIX}-pyrsistent>=0.17.3:../../devel/py-pyrsistent
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=22.2.0:../../devel/py-attrs
+DEPENDS+=      ${PYPKGPREFIX}-jsonschema-specifications>=2023.03.6:../../textproc/py-jsonschema-specifications
+DEPENDS+=      ${PYPKGPREFIX}-referencing>=0.28.4:../../textproc/py-referencing
+DEPENDS+=      ${PYPKGPREFIX}-rpds-py>=0.7.1:../../devel/py-rpds-py
 TEST_DEPENDS+= ${PYPKGPREFIX}-twisted-[0-9]*:../../net/py-twisted
 
 USE_LANGUAGES= # none
@@ -23,7 +24,6 @@ USE_LANGUAGES=        # none
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
-
 .if ${PYTHON_VERSION} < 309
 DEPENDS+=      ${PYPKGPREFIX}-importlib-resources>=1.4.0:../../devel/py-importlib-resources
 DEPENDS+=      ${PYPKGPREFIX}-pkgutil_resolve_name>=1.3.10:../../devel/py-pkgutil_resolve_name

Index: pkgsrc/textproc/py-jsonschema/PLIST
diff -u pkgsrc/textproc/py-jsonschema/PLIST:1.11 pkgsrc/textproc/py-jsonschema/PLIST:1.12
--- pkgsrc/textproc/py-jsonschema/PLIST:1.11    Sun Nov 27 12:09:29 2022
+++ pkgsrc/textproc/py-jsonschema/PLIST Fri Aug 25 21:35:08 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2022/11/27 12:09:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2023/08/25 21:35:08 adam Exp $
 bin/jsonschema-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -18,6 +18,8 @@ ${PYSITELIB}/jsonschema/_legacy_validato
 ${PYSITELIB}/jsonschema/_legacy_validators.pyc
 ${PYSITELIB}/jsonschema/_types.py
 ${PYSITELIB}/jsonschema/_types.pyc
+${PYSITELIB}/jsonschema/_typing.py
+${PYSITELIB}/jsonschema/_typing.pyc
 ${PYSITELIB}/jsonschema/_utils.py
 ${PYSITELIB}/jsonschema/_utils.pyc
 ${PYSITELIB}/jsonschema/_validators.py
@@ -29,36 +31,22 @@ ${PYSITELIB}/jsonschema/benchmarks/issue
 ${PYSITELIB}/jsonschema/benchmarks/issue232/issue.json
 ${PYSITELIB}/jsonschema/benchmarks/json_schema_test_suite.py
 ${PYSITELIB}/jsonschema/benchmarks/json_schema_test_suite.pyc
+${PYSITELIB}/jsonschema/benchmarks/nested_schemas.py
+${PYSITELIB}/jsonschema/benchmarks/nested_schemas.pyc
+${PYSITELIB}/jsonschema/benchmarks/subcomponents.py
+${PYSITELIB}/jsonschema/benchmarks/subcomponents.pyc
+${PYSITELIB}/jsonschema/benchmarks/unused_registry.py
+${PYSITELIB}/jsonschema/benchmarks/unused_registry.pyc
+${PYSITELIB}/jsonschema/benchmarks/validator_creation.py
+${PYSITELIB}/jsonschema/benchmarks/validator_creation.pyc
 ${PYSITELIB}/jsonschema/cli.py
 ${PYSITELIB}/jsonschema/cli.pyc
 ${PYSITELIB}/jsonschema/exceptions.py
 ${PYSITELIB}/jsonschema/exceptions.pyc
 ${PYSITELIB}/jsonschema/protocols.py
 ${PYSITELIB}/jsonschema/protocols.pyc
-${PYSITELIB}/jsonschema/schemas/draft2019-09.json
-${PYSITELIB}/jsonschema/schemas/draft2020-12.json
-${PYSITELIB}/jsonschema/schemas/draft3.json
-${PYSITELIB}/jsonschema/schemas/draft4.json
-${PYSITELIB}/jsonschema/schemas/draft6.json
-${PYSITELIB}/jsonschema/schemas/draft7.json
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2019-09/applicator
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2019-09/content
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2019-09/core
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2019-09/meta-data
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2019-09/validation
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/applicator
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/content
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/core
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/format
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/format-annotation
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/format-assertion
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/meta-data
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/unevaluated
-${PYSITELIB}/jsonschema/schemas/vocabularies/draft2020-12/validation
 ${PYSITELIB}/jsonschema/tests/__init__.py
 ${PYSITELIB}/jsonschema/tests/__init__.pyc
-${PYSITELIB}/jsonschema/tests/_helpers.py
-${PYSITELIB}/jsonschema/tests/_helpers.pyc
 ${PYSITELIB}/jsonschema/tests/_suite.py
 ${PYSITELIB}/jsonschema/tests/_suite.pyc
 ${PYSITELIB}/jsonschema/tests/fuzz_validate.py

Index: pkgsrc/textproc/py-jsonschema/distinfo
diff -u pkgsrc/textproc/py-jsonschema/distinfo:1.19 pkgsrc/textproc/py-jsonschema/distinfo:1.20
--- pkgsrc/textproc/py-jsonschema/distinfo:1.19 Mon Dec 19 08:22:10 2022
+++ pkgsrc/textproc/py-jsonschema/distinfo      Fri Aug 25 21:35:08 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.19 2022/12/19 08:22:10 adam Exp $
+$NetBSD: distinfo,v 1.20 2023/08/25 21:35:08 adam Exp $
 
-BLAKE2s (jsonschema-4.17.3.tar.gz) = 008614470694f7bf3dc4b69cf624cee5f3eb79ab4a3c3997983f61d49e52746a
-SHA512 (jsonschema-4.17.3.tar.gz) = 626fc913c37d2e49e4b47c9e058aab4a96c1dc50c35d8def0b2ea0ca464dc25e3318d4fde4927c11ca38068743cd81779d5189464b821407ac1de1788bad30e2
-Size (jsonschema-4.17.3.tar.gz) = 297785 bytes
+BLAKE2s (jsonschema-4.19.0.tar.gz) = c62cf4c7db04f7684bab1c59bb7d31a840dd0bec3fcb646021abd597a32f7331
+SHA512 (jsonschema-4.19.0.tar.gz) = 95cc156fe0505da469600cdbaaf921853a983d45f6b8570e5bbffe9ee41abbf5757b2ccddde443b0d833a3ebdcbff321bda54b136b47d7650d3a40f6402338fb
+Size (jsonschema-4.19.0.tar.gz) = 317546 bytes



Home | Main Index | Thread Index | Old Index