From nobody Sat Sep 10 16:09:03 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MPyTq4Bndz4cLtd; Sat, 10 Sep 2022 16:09:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MPyTq3lxMz3F6f; Sat, 10 Sep 2022 16:09:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662826143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bvHTEJX/8sP6E2QM63478wAiSy6OjkS9qzCZCX+YZ0c=; b=mM5A6jLIoj4A0tKq8mrOqtPfjVdxyU4pzQw2lbKDZXNlep3b1Ar+fM2g9ALyVoMAFDRgP3 EzxUmueCeFQTJGHp2Utwy/4bQVn2K3AKDVaJFZKynXVqcTFVtiHv1r65pB+z8oMxnpDK7/ MWldIIIVlFovjaPSPZztYsHrGv8NYkoT6NsyXvRXrtWNmUPuUSo/qbYj3atEAtjd3Ehy5E /bMsKXwP4IShwO+eeuOZIZy+ATs5Wd0YaLxpybxJSkp+qAuiEyjbcLfG8KuApeG00zk0Tf iJmKErLRy8KLvl4INvZWf7rrOV9nr4wwgfjt/zGcYxyEbK90jiozr+Qs8LH4pQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MPyTq2rlgzM0w; Sat, 10 Sep 2022 16:09:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28AG93gV055597; Sat, 10 Sep 2022 16:09:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28AG93cu055596; Sat, 10 Sep 2022 16:09:03 GMT (envelope-from git) Date: Sat, 10 Sep 2022 16:09:03 GMT Message-Id: <202209101609.28AG93cu055596@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 75e6c9d25493 - main - devel/py-jsonschema49: Add py-jsonschema49 (copied from py-jsonschema) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 75e6c9d254938243001a35b99d57b4809eafb2fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662826143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bvHTEJX/8sP6E2QM63478wAiSy6OjkS9qzCZCX+YZ0c=; b=b3Y4SBe7EOvwdH4UySi7VOzuetxGbWmacGywPt7o6H+A12LaaexeDVraxig1xs5WIUcncw loX2lhiAH/qijlUo6FcEd++BL4YNRFxUtv7XwVF3PF6pL5IdgbX19eWk6wiWwXY4x/F4RT OF09kU9/g7O5TWbcU6eVrUGo/dZlIQOgGwkRb9BXRa1pxkKmkGLjKpSMOdXUVUCNKhB4mq dejL+M2Blan6n3tMfUcGvcPAKGdXWqndayB6x+wfsYnuu9wBFblgI4U/HcQrFCVtKUHyPq CSRr8pAa7Hdr8D4ozaO4IhUX6/nJVYatNsuGU57zV3BRpsuo2FULz6Thrr/qpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662826143; a=rsa-sha256; cv=none; b=UcYEvy6kEfUj/rDNBfrnGxd581ZQ9V5tDzixvfJ25+eiLXgXMgLkcwhFrc/7DP36Cc1CxS UftWXyLDTDHnBsI9TD3UaRlQ5aqN+jkDp3wwTXyy51SNi9hV3wDu+YyXwE1htZ+AsYgWU/ E+GFiP2DFgjGFs4pyrWVkTRodHII3WP29ZDONQfyZ2OhBhsnHC4TDYRfUsD+pbvyJkvF9d s6NXrcf16JIY+UU7bp5nmqEHMDr33A779R53UzhIWoGwFF+IPegmMzlN+tz2UN4ofOwf1l oEtJxZNdCdg6JWXS9h85QK+O81t46lNycpzwrmGkxX7cBK+PEqK7U2eGnPQCDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=75e6c9d254938243001a35b99d57b4809eafb2fc commit 75e6c9d254938243001a35b99d57b4809eafb2fc Author: Po-Chuan Hsieh AuthorDate: 2022-09-10 16:05:55 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-09-10 16:05:55 +0000 devel/py-jsonschema49: Add py-jsonschema49 (copied from py-jsonschema) - Add PORTSCOUT --- devel/Makefile | 1 + devel/py-jsonschema49/Makefile | 43 +++++++++++++++++++ devel/py-jsonschema49/distinfo | 3 ++ devel/py-jsonschema49/files/patch-setup.py | 69 ++++++++++++++++++++++++++++++ devel/py-jsonschema49/pkg-descr | 6 +++ 5 files changed, 122 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 45f35f61cc72..e3cd6b440aa3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4703,6 +4703,7 @@ SUBDIR += py-jsonschema SUBDIR += py-jsonschema-spec SUBDIR += py-jsonschema3 + SUBDIR += py-jsonschema49 SUBDIR += py-jsonsir SUBDIR += py-jupyter-client SUBDIR += py-jupyter-core diff --git a/devel/py-jsonschema49/Makefile b/devel/py-jsonschema49/Makefile new file mode 100644 index 000000000000..3d123995310e --- /dev/null +++ b/devel/py-jsonschema49/Makefile @@ -0,0 +1,43 @@ +PORTNAME= jsonschema +PORTVERSION= 4.9.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 49 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= JSON Schema validation for Python +WWW= https://github.com/Julian/jsonschema + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4:devel/py-setuptools_scm@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyrsistent>=0.14.0:devel/py-pyrsistent@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +CONFLICTS_INSTALL= py*-jsonschema3 # bin/jsonschema + +PORTSCOUT= limit:^4\.9\. + +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPEDNS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR} +.endif + +do-test: + cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m tox + +.include diff --git a/devel/py-jsonschema49/distinfo b/devel/py-jsonschema49/distinfo new file mode 100644 index 000000000000..2b5ab5f49fe3 --- /dev/null +++ b/devel/py-jsonschema49/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662313350 +SHA256 (jsonschema-4.9.1.tar.gz) = 408c4c8ed0dede3b268f7a441784f74206380b04f93eb2d537c7befb3df3099f +SIZE (jsonschema-4.9.1.tar.gz) = 281177 diff --git a/devel/py-jsonschema49/files/patch-setup.py b/devel/py-jsonschema49/files/patch-setup.py new file mode 100644 index 000000000000..fd4b31c64e70 --- /dev/null +++ b/devel/py-jsonschema49/files/patch-setup.py @@ -0,0 +1,69 @@ +--- setup.py.orig 2022-07-20 21:49:12 UTC ++++ setup.py +@@ -0,0 +1,66 @@ ++# -*- coding: utf-8 -*- ++from setuptools import setup ++ ++setup( ++ name='jsonschema', ++ version='4.7.2', ++ description='An implementation of JSON Schema validation for Python', ++ long_description='==========\njsonschema\n==========\n\n|PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo|\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/jsonschema.svg\n :alt: PyPI version\n :target: https://pypi.org/project/jsonschema/\n\n.. |Pythons| image:: https://img.shields.io/pypi/pyversions/jsonschema.svg\n :alt: Supported Python versions\n :target: https://pypi.org/project/jsonschema/\n\n.. |CI| image:: https://github.com/python-jsonschema/jsonschema/workflows/CI/badge.svg\n :alt: Build status\n :target: https://github.com/python-jsonschema/jsonschema/actions?query=workflow%3ACI\n\n.. |ReadTheDocs| image:: https://readthedocs.org/projects/python-jsonschema/badge/?version=stable&style=flat\n :alt: ReadTheDocs status\n :target: https://python-jsonschema.readthedocs.io/en/stable/\n\n.. |Precommit| image:: https://results.pre-commit.ci/badge/github/python-jsonschema/jsonschema/main.svg\n :alt: pre-commit.ci status\n :target: https://results.pre -commit.ci/latest/github/python-jsonschema/jsonschema/main\n\n.. |Zenodo| image:: https://zenodo.org/badge/3072629.svg\n :target: https://zenodo.org/badge/latestdoi/3072629\n\n\n``jsonschema`` is an implementation of the `JSON Schema\n`_ specification for Python.\n\n.. code-block:: python\n\n >>> from jsonschema import validate\n\n >>> # A sample schema, like what we\'d get from json.load()\n >>> schema = {\n ... "type" : "object",\n ... "properties" : {\n ... "price" : {"type" : "number"},\n ... "name" : {"type" : "string"},\n ... },\n ... }\n\n >>> # If no exception is raised by validate(), the instance is valid.\n >>> validate(instance={"name" : "Eggs", "price" : 34.99}, schema=schema)\n\n >>> validate(\n ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,\n ... ) # doctest: +IGNORE_EXCEPTION_DETAIL\n Traceback (most recent call last):\n ...\n ValidationError: \! 'Invalid\' is not of type \'number\'\n\nIt can also be used from console:\n\n.. code-block:: bash\n\n $ jsonschema --instance sample.json sample.schema\n\nFeatures\n--------\n\n* Partial support for\n `Draft 2020-12 `_ and\n `Draft 2019-09 `_,\n except for ``dynamicRef`` / ``recursiveRef`` and ``$vocabulary`` (in-progress).\n Full support for\n `Draft 7 `_,\n `Draft 6 `_,\n `Draft 4 `_\n and\n `Draft 3 `_\n\n* `Lazy validation `_\n that can iteratively report *all* validation errors.\n\n* `Programmatic querying `_\n of which properties or items failed validation.\n\n\nInstallation\n------------\n\n``jsonschema`` is available on `PyPI `_. You can install using `pip `_:\n\n.. code-block:: bash\n\n $ pip install jsonschema\n\n\nRunning the Test Suite\n----------------------\n\nIf you have ``tox`` installed (perhaps via ``pip install tox`` or your\npackage manager), running ``tox`` in the directory of your source\ncheckout will run ``jsonschema``\'s test suite on all of the versions\nof Python ``jsonschema`` supports. If you don\'t have all of the\nversions that ``jsonschema`` is tested under, you\'ll likely want to run\nusing ``tox``\'s ``--skip-missing-interpreters`` option.\n\nOf course you\'re also free to just run the tes! ts on a s! ingle version with your\nfavorite test runner. The tests live in the ``jsonschema.tests`` package.\n\n\nBenchmarks\n----------\n\n``jsonschema``\'s benchmarks make use of `pyperf\n`_. Running them can be done via::\n\n $ tox -e perf\n\n\nCommunity\n---------\n\nThe JSON Schema specification has `a Slack\n`_, with an `invite link on its home page\n`_. Many folks knowledgeable on authoring\nschemas can be found there.\n\nOtherwise, asking questions on Stack Overflow is another means of\ngetting help if you\'re stuck.\n\n\nAbout\n-----\n\nI\'m Julian Berman.\n\n``jsonschema`` is on `GitHub `_.\n\nGet in touch, via GitHub or otherwise, if you\'ve got something to contribute,\nit\'d be most welcome!\n\nYou can also generally find me on Libera (nick: ``Julian``) in various\nchannels, including ``#python``.\n\nIf you feel overwhelmingly grateful, you can also `sponsor me\n`_.\n\nAnd for companies who appreciate ``jsonschema`` and its continued support\nand growth, ``jsonschema`` is also now supportable via `TideLift\n`_.\n', ++ author='Julian Berman', ++ author_email='Julian+jsonschema@GrayVines.com', ++ classifiers=[ ++ 'Development Status :: 5 - Production/Stable', ++ 'Intended Audience :: Developers', ++ 'License :: OSI Approved :: MIT License', ++ 'Operating System :: OS Independent', ++ 'Programming Language :: Python', ++ 'Programming Language :: Python :: 3.10', ++ 'Programming Language :: Python :: 3.11', ++ 'Programming Language :: Python :: 3.7', ++ 'Programming Language :: Python :: 3.8', ++ 'Programming Language :: Python :: 3.9', ++ 'Programming Language :: Python :: Implementation :: CPython', ++ 'Programming Language :: Python :: Implementation :: PyPy', ++ ], ++ install_requires=[ ++ 'attrs>=17.4.0', ++ 'importlib-metadata; python_version < "3.8"', ++ 'importlib-resources>=1.4.0; python_version < "3.9"', ++ 'pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0', ++ 'typing-extensions; python_version < "3.8"', ++ ], ++ extras_require={ ++ 'format': [ ++ 'fqdn', ++ 'idna', ++ 'isoduration', ++ 'jsonpointer>1.13', ++ 'rfc3339-validator', ++ 'rfc3987', ++ 'uri-template', ++ 'webcolors>=1.11', ++ ], ++ 'format-nongpl': [ ++ 'fqdn', ++ 'idna', ++ 'isoduration', ++ 'jsonpointer>1.13', ++ 'rfc3339-validator', ++ 'rfc3986-validator>0.1.0', ++ 'uri-template', ++ 'webcolors>=1.11', ++ ], ++ }, ++ entry_points={ ++ 'console_scripts': [ ++ 'jsonschema = jsonschema.cli:main', ++ ], ++ }, ++ packages=[ ++ 'jsonschema', ++ 'jsonschema.schemas', ++ 'jsonschema.benchmarks', ++ 'jsonschema.tests', ++ ], ++ package_data={'': ['*']}, ++) diff --git a/devel/py-jsonschema49/pkg-descr b/devel/py-jsonschema49/pkg-descr new file mode 100644 index 000000000000..130c5d25f094 --- /dev/null +++ b/devel/py-jsonschema49/pkg-descr @@ -0,0 +1,6 @@ +jsonschema is an implementation of JSON Schema for Python + + - Full support for Draft 3 and Draft 4 of the schema. + - Lazy validation that can iteratively report all validation errors. + - Small and extensible + - Programmatic querying of which properties or items failed validation.