pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-jsonschema py-jsonschema: updated to 4.4.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/a623f6802430
branches: trunk
changeset: 376408:a623f6802430
user: adam <adam%pkgsrc.org@localhost>
date: Thu Apr 07 06:49:20 2022 +0000
description:
py-jsonschema: updated to 4.4.0
v4.4.0
------
* Add ``mypy`` support
* Add support for Python 3.11
v4.3.3
------
* Properly report deprecation warnings at the right stack level
v4.3.2
------
* Additional performance improvements for resolving refs
v4.3.1
------
* Resolving refs has had performance improvements
v4.3.0
------
* Fix undesired fallback to brute force container uniqueness check on
certain input types
* Implement a PEP544 Protocol for validator classes
v4.2.1
------
* Pin ``importlib.resources`` from below
v4.2.0
------
* Use ``importlib.resources`` to load schemas
* Ensure all elements of arrays are verified for uniqueness by ``uniqueItems``
v4.1.2
------
* Fix ``dependentSchemas`` to properly consider non-object instances to be
valid
v4.1.1
------
* Fix ``prefixItems`` not indicating which item was invalid within the instance
path
v4.1.0
------
* Add Python 3.10 to the list of supported Python versions
v4.0.1
------
* Fix the declaration of minimum supported Python version
v4.0.0
------
* Partial support for Draft 2020-12 (as well as 2019-09).
Thanks to Thomas Schmidt and Harald Nezbeda.
* ``False`` and ``0`` are now properly considered non-equal even
recursively within a container
``uniqueItems`` validation may be *slower* in some cases. Please feel
free to report any significant performance regressions, though in
some cases they may be difficult to address given the specification
requirement.
* The CLI has been improved, and in particular now supports a ``--output``
option (with ``plain`` (default) or ``pretty`` arguments) to control the
output format. Future work may add additional machine-parsable output
formats.
* Code surrounding ``DEFAULT_TYPES`` and the legacy mechanism for
specifying types to validators have been removed, as per the deprecation
policy. Validators should use the ``TypeChecker`` object to customize
the set of Python types corresponding to JSON Schema types.
* Validation errors now have a ``json_path`` attribute, describing their
location in JSON path format
* Support for the IP address and domain name formats has been improved
* Support for Python 2 and 3.6 has been dropped, with ``python_requires``
properly set.
* ``multipleOf`` could overflow when given sufficiently large numbers. Now,
when an overflow occurs, ``jsonschema`` will fall back to using fraction
division
* ``jsonschema.__version__``, ``jsonschema.validators.validators``,
``jsonschema.validators.meta_schemas`` and
``jsonschema.RefResolver.in_scope`` have been deprecated, as has
passing a second-argument schema to ``Validator.iter_errors`` and
``Validator.is_valid``.
diffstat:
textproc/py-jsonschema/Makefile | 32 ++++++++++++-----------
textproc/py-jsonschema/PLIST | 54 +++++++++++++++-------------------------
textproc/py-jsonschema/distinfo | 8 +++---
3 files changed, 42 insertions(+), 52 deletions(-)
diffs (180 lines):
diff -r 9fd75f405011 -r a623f6802430 textproc/py-jsonschema/Makefile
--- a/textproc/py-jsonschema/Makefile Thu Apr 07 06:46:29 2022 +0000
+++ b/textproc/py-jsonschema/Makefile Thu Apr 07 06:49:20 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2022/02/13 08:53:44 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2022/04/07 06:49:20 adam Exp $
-DISTNAME= jsonschema-3.2.0
+DISTNAME= jsonschema-4.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 2
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=j/jsonschema/}
@@ -11,21 +10,25 @@
COMMENT= Implementation of JSON Schema for Python
LICENSE= modified-bsd
+BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
-DEPENDS+= ${PYPKGPREFIX}-pyrsistent>=0.14.0:../../devel/py-pyrsistent
-DEPENDS+= ${PYPKGPREFIX}-six>=1.11.0:../../lang/py-six
+DEPENDS+= ${PYPKGPREFIX}-pyrsistent>=0.17.3:../../devel/py-pyrsistent
+TEST_DEPENDS+= ${PYPKGPREFIX}-twisted>0:../../net/py-twisted
-.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == 27
-DEPENDS+= ${PYPKGPREFIX}-functools32-[0-9]*:../../devel/py-functools32
-.elif ${_PYTHON_VERSION} < 38
-PYTHON_VERSIONED_DEPENDENCIES+= importlib-metadata
-.endif
+USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
-PYTHON_VERSIONED_DEPENDENCIES+= setuptools_scm:build
-PYTHON_VERSIONED_DEPENDENCIES+= twisted:test
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>0:../../devel/py-importlib-metadata
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions
+.endif
+.if ${_PYTHON_VERSION} < 39
+DEPENDS+= ${PYPKGPREFIX}-importlib-resources>=1.4.0:../../devel/py-importlib-resources
+.endif
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
@@ -34,6 +37,5 @@
do-test:
cd ${WRKSRC}/jsonschema && ${PYTHONBIN} -m unittest discover -v
-.include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 9fd75f405011 -r a623f6802430 textproc/py-jsonschema/PLIST
--- a/textproc/py-jsonschema/PLIST Thu Apr 07 06:46:29 2022 +0000
+++ b/textproc/py-jsonschema/PLIST Thu Apr 07 06:49:20 2022 +0000
@@ -1,84 +1,72 @@
-@comment $NetBSD: PLIST,v 1.6 2019/10/19 14:32:09 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2022/04/07 06:49:20 adam Exp $
bin/jsonschema-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/jsonschema/__init__.py
${PYSITELIB}/jsonschema/__init__.pyc
-${PYSITELIB}/jsonschema/__init__.pyo
${PYSITELIB}/jsonschema/__main__.py
${PYSITELIB}/jsonschema/__main__.pyc
-${PYSITELIB}/jsonschema/__main__.pyo
${PYSITELIB}/jsonschema/_format.py
${PYSITELIB}/jsonschema/_format.pyc
-${PYSITELIB}/jsonschema/_format.pyo
${PYSITELIB}/jsonschema/_legacy_validators.py
${PYSITELIB}/jsonschema/_legacy_validators.pyc
-${PYSITELIB}/jsonschema/_legacy_validators.pyo
${PYSITELIB}/jsonschema/_reflect.py
${PYSITELIB}/jsonschema/_reflect.pyc
-${PYSITELIB}/jsonschema/_reflect.pyo
${PYSITELIB}/jsonschema/_types.py
${PYSITELIB}/jsonschema/_types.pyc
-${PYSITELIB}/jsonschema/_types.pyo
${PYSITELIB}/jsonschema/_utils.py
${PYSITELIB}/jsonschema/_utils.pyc
-${PYSITELIB}/jsonschema/_utils.pyo
${PYSITELIB}/jsonschema/_validators.py
${PYSITELIB}/jsonschema/_validators.pyc
-${PYSITELIB}/jsonschema/_validators.pyo
${PYSITELIB}/jsonschema/benchmarks/__init__.py
${PYSITELIB}/jsonschema/benchmarks/__init__.pyc
-${PYSITELIB}/jsonschema/benchmarks/__init__.pyo
${PYSITELIB}/jsonschema/benchmarks/issue232.py
${PYSITELIB}/jsonschema/benchmarks/issue232.pyc
-${PYSITELIB}/jsonschema/benchmarks/issue232.pyo
${PYSITELIB}/jsonschema/benchmarks/json_schema_test_suite.py
${PYSITELIB}/jsonschema/benchmarks/json_schema_test_suite.pyc
-${PYSITELIB}/jsonschema/benchmarks/json_schema_test_suite.pyo
${PYSITELIB}/jsonschema/cli.py
${PYSITELIB}/jsonschema/cli.pyc
-${PYSITELIB}/jsonschema/cli.pyo
-${PYSITELIB}/jsonschema/compat.py
-${PYSITELIB}/jsonschema/compat.pyc
-${PYSITELIB}/jsonschema/compat.pyo
${PYSITELIB}/jsonschema/exceptions.py
${PYSITELIB}/jsonschema/exceptions.pyc
-${PYSITELIB}/jsonschema/exceptions.pyo
+${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.json
${PYSITELIB}/jsonschema/tests/__init__.py
${PYSITELIB}/jsonschema/tests/__init__.pyc
-${PYSITELIB}/jsonschema/tests/__init__.pyo
${PYSITELIB}/jsonschema/tests/_helpers.py
${PYSITELIB}/jsonschema/tests/_helpers.pyc
-${PYSITELIB}/jsonschema/tests/_helpers.pyo
${PYSITELIB}/jsonschema/tests/_suite.py
${PYSITELIB}/jsonschema/tests/_suite.pyc
-${PYSITELIB}/jsonschema/tests/_suite.pyo
+${PYSITELIB}/jsonschema/tests/fuzz_validate.py
+${PYSITELIB}/jsonschema/tests/fuzz_validate.pyc
${PYSITELIB}/jsonschema/tests/test_cli.py
${PYSITELIB}/jsonschema/tests/test_cli.pyc
-${PYSITELIB}/jsonschema/tests/test_cli.pyo
+${PYSITELIB}/jsonschema/tests/test_deprecations.py
+${PYSITELIB}/jsonschema/tests/test_deprecations.pyc
${PYSITELIB}/jsonschema/tests/test_exceptions.py
${PYSITELIB}/jsonschema/tests/test_exceptions.pyc
-${PYSITELIB}/jsonschema/tests/test_exceptions.pyo
${PYSITELIB}/jsonschema/tests/test_format.py
${PYSITELIB}/jsonschema/tests/test_format.pyc
-${PYSITELIB}/jsonschema/tests/test_format.pyo
${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.py
${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.pyc
-${PYSITELIB}/jsonschema/tests/test_jsonschema_test_suite.pyo
${PYSITELIB}/jsonschema/tests/test_types.py
${PYSITELIB}/jsonschema/tests/test_types.pyc
-${PYSITELIB}/jsonschema/tests/test_types.pyo
+${PYSITELIB}/jsonschema/tests/test_utils.py
+${PYSITELIB}/jsonschema/tests/test_utils.pyc
${PYSITELIB}/jsonschema/tests/test_validators.py
${PYSITELIB}/jsonschema/tests/test_validators.pyc
-${PYSITELIB}/jsonschema/tests/test_validators.pyo
${PYSITELIB}/jsonschema/validators.py
${PYSITELIB}/jsonschema/validators.pyc
-${PYSITELIB}/jsonschema/validators.pyo
diff -r 9fd75f405011 -r a623f6802430 textproc/py-jsonschema/distinfo
--- a/textproc/py-jsonschema/distinfo Thu Apr 07 06:46:29 2022 +0000
+++ b/textproc/py-jsonschema/distinfo Thu Apr 07 06:49:20 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 11:23:06 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/04/07 06:49:20 adam Exp $
-BLAKE2s (jsonschema-3.2.0.tar.gz) = 7d9dbc21ee91dce88b404292db47ac06d944dae1c8612e2c2ac0398203c73e05
-SHA512 (jsonschema-3.2.0.tar.gz) = acbb4cec730a8cdab9f070593ed896064fbe082d464ec362adc952e4985e9eaa12ad0f2d55a04018ffdaf675e54037999a7219533dad6b84bf609f5dfe21bbab
-Size (jsonschema-3.2.0.tar.gz) = 167226 bytes
+BLAKE2s (jsonschema-4.4.0.tar.gz) = e04f27ea5b75c46c0df864c290704146bba3ab6ac15c5d80f50db96496c2b91b
+SHA512 (jsonschema-4.4.0.tar.gz) = 8e5c138f4debf7540e2cd131f3f208d1778927ac9036f5fa67bcf5db8c62fe1bb454c7818ee61acef64e856ea4b498ef6ab08be314a3c6b1e461e0bb44db41c7
+Size (jsonschema-4.4.0.tar.gz) = 313519 bytes
Home |
Main Index |
Thread Index |
Old Index