From owner-dev-commits-ports-main@freebsd.org Sat Aug 7 15:34:59 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C143A66CE6B; Sat, 7 Aug 2021 15:34:59 +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 4Ghmcg50tfz3q33; Sat, 7 Aug 2021 15:34:59 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 93FD523A90; Sat, 7 Aug 2021 15:34:59 +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 177FYxJ8055898; Sat, 7 Aug 2021 15:34:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 177FYxvn055897; Sat, 7 Aug 2021 15:34:59 GMT (envelope-from git) Date: Sat, 7 Aug 2021 15:34:59 GMT Message-Id: <202108071534.177FYxvn055897@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: c45834e17fc4 - main - textproc/py-jq: update to v1.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c45834e17fc487ddb045a2507c3647b60789c8ca Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2021 15:34:59 -0000 The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=c45834e17fc487ddb045a2507c3647b60789c8ca commit c45834e17fc487ddb045a2507c3647b60789c8ca Author: Matthias Andree AuthorDate: 2021-08-07 15:29:41 +0000 Commit: Matthias Andree CommitDate: 2021-08-07 15:34:53 +0000 textproc/py-jq: update to v1.2.1 Adds Python 3.10 support (see [1]), else see the Changelog: https://github.com/mwilliamson/jq.py/blob/1.2.1/CHANGELOG.rst#changelog Note that Python 3.10 cannot currently execute self-tests, assistance solicited: ______ ERROR collecting tests/jq_old_tests.py _____ :939: in _find_spec ??? E AttributeError: 'AssertionRewritingHook' object has no attribute 'find_spec' During handling of the above exception, another exception occurred: /usr/local/lib/python3.10/site-packages/py/_path/local.py:704: in pyimport __import__(modname) :1027: in _find_and_load ??? :1002: in _find_and_load_unlocked ??? :941: in _find_spec ??? :915: in _find_spec_legacy ??? /usr/local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:169: in find_module source_stat, co = _rewrite_test(self.config, fn_pypath) /usr/local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:406: in _rewrite_test co = compile(tree, fn.strpath, "exec", dont_inherit=True) E TypeError: required field "lineno" missing from alias ___________________________________________________ [1] https://github.com/mwilliamson/jq.py/commit/337c0f8baf77a59f9054eefc07460fffe91702ce --- textproc/py-jq/Makefile | 20 +++++++++++++++----- textproc/py-jq/distinfo | 8 +++++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/textproc/py-jq/Makefile b/textproc/py-jq/Makefile index 8fb4f53df061..587277822451 100644 --- a/textproc/py-jq/Makefile +++ b/textproc/py-jq/Makefile @@ -1,8 +1,9 @@ PORTNAME= jq -PORTVERSION= 1.1.3 +PORTVERSION= 1.2.1 CATEGORIES= textproc python -MASTER_SITES= CHEESESHOP +MASTER_SITES= CHEESESHOP LOCAL/mandree:mandree PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} jq-1.2.1-tests${EXTRACT_SUFX}:mandree MAINTAINER= mandree@FreeBSD.org COMMENT= jq.py: a lightweight and flexible JSON processor @@ -10,16 +11,25 @@ COMMENT= jq.py: a lightweight and flexible JSON processor LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${RUN_DEPENDS} LIB_DEPENDS= libjq.so:textproc/jq \ libonig.so:devel/oniguruma - RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} -BUILD_DEPENDS= ${RUN_DEPENDS} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} -USES= localbase python:3.4+ +USES= localbase python:3.5+ USE_PYTHON= autoplist distutils post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jq*.so +do-test: + cd ${WRKSRC} && ${SETENV} \ + PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \ + ${PYTHON_CMD} -m pytest -v tests/ + .include diff --git a/textproc/py-jq/distinfo b/textproc/py-jq/distinfo index a6397f5fe49e..1ae9e5b0e920 100644 --- a/textproc/py-jq/distinfo +++ b/textproc/py-jq/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1621674990 -SHA256 (jq-1.1.3.tar.gz) = f9ec1dfa7f9875b04495f3e08e85ee96f37a3b843e5bca738a3300732865dde7 -SIZE (jq-1.1.3.tar.gz) = 71393 +TIMESTAMP = 1628345619 +SHA256 (jq-1.2.1.tar.gz) = 73ce588025495e6ebcda20bb9e64b6d9f3f1657c22895143ae243899ac710cbc +SIZE (jq-1.2.1.tar.gz) = 72435 +SHA256 (jq-1.2.1-tests.tar.gz) = 7648084f434896eda31bb5e09a4f6d32ebb561660c95655e08346c33be9b3ece +SIZE (jq-1.2.1-tests.tar.gz) = 2856