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:           Mon Sep  5 14:14:17 UTC 2022

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

Log Message:
py-jsonschema: updated to 4.15.0

v4.15.0
* A specific API Reference page is now present in the documentation.
* ``$ref`` on earlier drafts (specifically draft 7 and 6) has been "fixed" to
  follow the specified behavior when present alongside a sibling ``$id``.
  Specifically the ID is now properly ignored, and references are resolved
  against whatever resolution scope was previously relevant.

v4.14.0
* ``FormatChecker.cls_checks`` is deprecated. Use ``FormatChecker.checks`` on
  an instance of ``FormatChecker`` instead.
* ``unevaluatedItems`` has been fixed for draft 2019. It's nonetheless
  discouraged to use draft 2019 for any schemas, new or old.
* Fix a number of minor annotation issues in ``protocols.Validator``

v4.13.0
* Add support for creating validator classes whose metaschema uses a different
  dialect than its schemas. In other words, they may use draft2020-12 to define
  which schemas are valid, but the schemas themselves use draft7 (or a custom
  dialect, etc.) to define which *instances* are valid. Doing this is likely
  not something most users, even metaschema authors, may need, but occasionally
  will be useful for advanced use cases.

v4.12.1
* Fix some stray comments in the README.

v4.12.0
* Warn at runtime when subclassing validator classes. Doing so was not
  intended to be public API, though it seems some downstream libraries
  do so. A future version will make this an error, as it is brittle and
  better served by composing validator objects instead. Feel free to reach
  out if there are any cases where changing existing code seems difficult
  and I can try to provide guidance.

v4.11.0
* Make the rendered README in PyPI simpler and fancier.

v4.10.3
* ``jsonschema.validators.validator_for`` now properly uses the explicitly
  provided default validator even if the ``$schema`` URI is not found.

v4.10.2
* Fix a second place where subclasses may have added attrs attributes.

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

v4.10.0
* Add support for referencing schemas with ``$ref`` across different versions
  of the specification than the referrer's

v4.9.1
* Update some documentation examples to use newer validator releases in their
  sample code.

v4.9.0
* Fix relative ``$ref`` resolution when the base URI is a URN or other scheme.
* ``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>`_.

v4.8.0
* ``best_match`` no longer traverses into ``anyOf`` and ``oneOf`` when all of
  the errors within them seem equally applicable. This should lead to clearer
  error messages in some cases where no branches were matched.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/textproc/py-jsonschema/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/py-jsonschema/PLIST
cvs rdiff -u -r1.14 -r1.15 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.27 pkgsrc/textproc/py-jsonschema/Makefile:1.28
--- pkgsrc/textproc/py-jsonschema/Makefile:1.27 Sun Jul 10 21:02:43 2022
+++ pkgsrc/textproc/py-jsonschema/Makefile      Mon Sep  5 14:14:17 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2022/07/10 21:02:43 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2022/09/05 14:14:17 adam Exp $
 
-DISTNAME=      jsonschema-4.6.2
+DISTNAME=      jsonschema-4.15.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=j/jsonschema/}
@@ -11,6 +11,7 @@ COMMENT=      Implementation of JSON Schema f
 LICENSE=       modified-bsd
 
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-hatch-fancy-pypi-readme-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
@@ -28,6 +29,7 @@ DEPENDS+=     ${PYPKGPREFIX}-typing-extensio
 .endif
 .if ${_PYTHON_VERSION} < 39
 DEPENDS+=      ${PYPKGPREFIX}-importlib-resources>=1.4.0:../../devel/py-importlib-resources
+DEPENDS+=      ${PYPKGPREFIX}-pkgutil_resolve_name>=1.3.10:../../devel/py-pkgutil_resolve_name
 .endif
 
 post-install:

Index: pkgsrc/textproc/py-jsonschema/PLIST
diff -u pkgsrc/textproc/py-jsonschema/PLIST:1.9 pkgsrc/textproc/py-jsonschema/PLIST:1.10
--- pkgsrc/textproc/py-jsonschema/PLIST:1.9     Mon Aug 29 16:11:02 2022
+++ pkgsrc/textproc/py-jsonschema/PLIST Mon Sep  5 14:14:17 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2022/08/29 16:11:02 thor Exp $
+@comment $NetBSD: PLIST,v 1.10 2022/09/05 14:14:17 adam Exp $
 bin/jsonschema-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -16,8 +16,6 @@ ${PYSITELIB}/jsonschema/_format.py
 ${PYSITELIB}/jsonschema/_format.pyc
 ${PYSITELIB}/jsonschema/_legacy_validators.py
 ${PYSITELIB}/jsonschema/_legacy_validators.pyc
-${PYSITELIB}/jsonschema/_reflect.py
-${PYSITELIB}/jsonschema/_reflect.pyc
 ${PYSITELIB}/jsonschema/_types.py
 ${PYSITELIB}/jsonschema/_types.pyc
 ${PYSITELIB}/jsonschema/_utils.py

Index: pkgsrc/textproc/py-jsonschema/distinfo
diff -u pkgsrc/textproc/py-jsonschema/distinfo:1.14 pkgsrc/textproc/py-jsonschema/distinfo:1.15
--- pkgsrc/textproc/py-jsonschema/distinfo:1.14 Fri Jul  8 07:54:06 2022
+++ pkgsrc/textproc/py-jsonschema/distinfo      Mon Sep  5 14:14:17 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2022/07/08 07:54:06 adam Exp $
+$NetBSD: distinfo,v 1.15 2022/09/05 14:14:17 adam Exp $
 
-BLAKE2s (jsonschema-4.6.2.tar.gz) = 8898cb395d6b77dc95166793f1e5971f8d17aa43cfef7eb27755a17ec9ed60d3
-SHA512 (jsonschema-4.6.2.tar.gz) = e41d6bda1bd6b12174201a70b5ad5209ab7c445faa6c947408f0fbc255839f3379ffe8b539760d993b435972936e4052300dbc420d4b87051f33180bced7efb2
-Size (jsonschema-4.6.2.tar.gz) = 275975 bytes
+BLAKE2s (jsonschema-4.15.0.tar.gz) = 7884b320e0cc8b4c5a00a28c8896384689523dcee32659ecd189608873bf718e
+SHA512 (jsonschema-4.15.0.tar.gz) = 8293b1dd7b16eb77b19ce89608384b3d97c1523ba080f38e6293390ba1b326d970721fdd6966623fc8a94b2b3357d1a68e1cc40b16eed037979fe6eb5684fa3f
+Size (jsonschema-4.15.0.tar.gz) = 290458 bytes



Home | Main Index | Thread Index | Old Index