From nobody Tue Apr 11 10:06:09 2023 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 4PwhLp3Jlcz44Z5g; Tue, 11 Apr 2023 10:06:10 +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 4PwhLp26J8z3vY8; Tue, 11 Apr 2023 10:06:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681207570; 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=QPYTwhBpZa6Jxg+xND1aGAmYaju4Wabpg6puvGyf1xY=; b=v9DjY4owGQDLf/EEHzZN7jBspug/ysBwDso1P3RCVgnWsS0HOzLM1Z8SIlKAlOu5/BsXRX qcmawpwTad0Du8bJlqZ8Q9Gh11Dg5HoTptLADCC6gjsuj2GwkJ9ivd3WmutdcHxV7scq9V IYwuZq7DygmGhg7FQLEx/isT7vDtqoEB0JNs6ttN6Kjp0mpeGx7GjoooAiphGNPqvRMoRA CR0wq+AcwnoZsAC7ct/eMF9o3XYLHKshdIe44BK+UOEXF3HZqJ8pfTv7dn9qpWNIyJDBSW uO+GJphgZjUMOg/lNbqa2QfOibZNEMxw4LB3nDCMtfuG1IrbwzEsxxRVaJPuQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681207570; 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=QPYTwhBpZa6Jxg+xND1aGAmYaju4Wabpg6puvGyf1xY=; b=jEgFTqYxKboe4256NL7PY1ZDEq1vD3t5eoScV+jU0d+jomduJQZI1eSTGlby8X5X0H9d67 yoQ6kg4HUqVqlwX25s2f1CthwvPMO0t8+JnrltSEfDaPXkU8bk3GGcCC3Irg+bxB8n+xzj WGu9AxliuZgbw/IPPGi7bsoHmYsYWZxWgG0MaHSplOGDfHLi49guRqlM3WcH6qkDEO2I4I vv6ZB6Gz0tdpWC6O+RfukIaVoa5mq49jkefHiJiRYoSuRppc8jKDL1JbnxbE1Iy41/biFe S3EHDZ3hrfAgF1HYNY4oVVH7y+M2hRbtdmAJElIMn6njcu9cG13D0zdMtFotgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681207570; a=rsa-sha256; cv=none; b=Bja94Lqxsme6g/daNrvEzZ5SW0M2cVm8v9BWp/xwpG8ktH1YiAIwjjx5jnPA7Ny/dAOdzv 76qvlDC/u4zhFmLlzzEocQZbJH3xMD5FCsoPY3gVxvx33hBQQDMXpqG6cx5ULUTniUMZZM YpB8MIBSPtAAADHzQwkiJpll42rPDy0ZCAEwVDTg4OXgHK+O5OvrrgSJIS7RDhwlozfVky 9nfmdb/RxPtXBlngWvcBE6nEXlZi/4k0EFxfMRDYBxRznvtffSzGRtDf2G87GRE7/Gb8gY N3f96h5RyUzyZpRjwTNCMRE/u2vrCS7BzQxE5GICxMSHwj1Xhe8Mk3FQn+vFUg== 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 4PwhLn1fRMz1S6l; Tue, 11 Apr 2023 10:06:09 +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 33BA69hY087106; Tue, 11 Apr 2023 10:06:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33BA69Ug087105; Tue, 11 Apr 2023 10:06:09 GMT (envelope-from git) Date: Tue, 11 Apr 2023 10:06:09 GMT Message-Id: <202304111006.33BA69Ug087105@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: 482a9c73c452 - main - textproc/py-pygments: Update to 2.15.0 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: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 482a9c73c452e3c10f37a133794d9a788d39f60f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=482a9c73c452e3c10f37a133794d9a788d39f60f commit 482a9c73c452e3c10f37a133794d9a788d39f60f Author: Nicola Vitale AuthorDate: 2023-04-11 10:01:08 +0000 Commit: Nicola Vitale CommitDate: 2023-04-11 10:01:08 +0000 textproc/py-pygments: Update to 2.15.0 - Convert to PEP-517 - Add devel/py-importlib-metadata to run dependencies when Python version < 3.8 - Rename Project name in pyproject.toml to fix the following error when generating the packing list, even if the best solution would be to rename PORTNAME: ===> Staging for py39-pygments-2.15.0 ===> py39-pygments-2.15.0 depends on file: /usr/local/bin/python3.9 - found ===> Generating temporary packing list Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/installer/__main__.py", line 98, in _main(sys.argv[1:], "python -m installer") File "/usr/local/lib/python3.9/site-packages/installer/__main__.py", line 86, in _main with WheelFile.open(args.wheel) as source: File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__ return next(self.gen) File "/usr/local/lib/python3.9/site-packages/installer/sources.py", line 122, in open with zipfile.ZipFile(path) as f: File "/usr/local/lib/python3.9/zipfile.py", line 1248, in __init__ self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/poudriere/ports/default/textproc/py-pygments/work-py39/Pygments-2.15.0/dist/pygments-2.15.0*.whl' *** Error code 1 Release changes: https://pygments.org/docs/changelog/ --- textproc/py-pygments/Makefile | 20 +++++++++++++++----- textproc/py-pygments/distinfo | 6 +++--- textproc/py-pygments/files/patch-pyproject.toml | 11 +++++++++++ 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/textproc/py-pygments/Makefile b/textproc/py-pygments/Makefile index 3e0629819c71..13ff60f6cdf1 100644 --- a/textproc/py-pygments/Makefile +++ b/textproc/py-pygments/Makefile @@ -1,5 +1,5 @@ PORTNAME= pygments -DISTVERSION= 2.14.0 +DISTVERSION= 2.15.0 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,16 +12,26 @@ WWW= https://pygments.org/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0.40.0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wcag-contrast-ratio>=0.9:www/py-wcag-contrast-ratio@${PY_FLAVOR} -USES= cpe python:3.6+ -USE_PYTHON= autoplist concurrent distutils +USES= cpe python:3.7+ +USE_PYTHON= autoplist concurrent pep517 CONFLICTS_INSTALL= py??-pygments-25 NO_ARCH= yes +# test: 4033 passed, 3 skipped, 8072 warnings do-test: (cd ${TEST_WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts=) -.include +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include diff --git a/textproc/py-pygments/distinfo b/textproc/py-pygments/distinfo index 9c0528ca7542..b79868a06ab2 100644 --- a/textproc/py-pygments/distinfo +++ b/textproc/py-pygments/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1672564497 -SHA256 (Pygments-2.14.0.tar.gz) = b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297 -SIZE (Pygments-2.14.0.tar.gz) = 4434562 +TIMESTAMP = 1681143350 +SHA256 (Pygments-2.15.0.tar.gz) = f7e36cffc4c517fbc252861b9a6e4644ca0e5abadf9a113c72d1358ad09b9500 +SIZE (Pygments-2.15.0.tar.gz) = 4818485 diff --git a/textproc/py-pygments/files/patch-pyproject.toml b/textproc/py-pygments/files/patch-pyproject.toml new file mode 100644 index 000000000000..60a9f7dd5303 --- /dev/null +++ b/textproc/py-pygments/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2023-02-25 10:36:04 UTC ++++ pyproject.toml +@@ -4,7 +4,7 @@ requires = ["setuptools >= 61"] + build-backend = "setuptools.build_meta" + + [project] +-name = "Pygments" ++name = "pygments" + dynamic = ["version"] + requires-python = ">=3.7" + license = {text = "BSD-2-Clause"}