From owner-dev-commits-ports-main@freebsd.org Sun Sep 19 06:06:42 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 9C87C6ABA1B; Sun, 19 Sep 2021 06:06:42 +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 4HBxz63MYMz3Md9; Sun, 19 Sep 2021 06:06:42 +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 50C5A18501; Sun, 19 Sep 2021 06:06:42 +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 18J66gQE052276; Sun, 19 Sep 2021 06:06:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18J66gfT052275; Sun, 19 Sep 2021 06:06:42 GMT (envelope-from git) Date: Sun, 19 Sep 2021 06:06:42 GMT Message-Id: <202109190606.18J66gfT052275@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: dc00fd24cfdb - main - devel/py-backports.entry-points-selectable: Add py-backports.entry-points-selectable 1.1.0 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: dc00fd24cfdb222315921be031793b3dc54db89e 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: Sun, 19 Sep 2021 06:06:42 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=dc00fd24cfdb222315921be031793b3dc54db89e commit dc00fd24cfdb222315921be031793b3dc54db89e Author: Po-Chuan Hsieh AuthorDate: 2021-09-19 05:25:34 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-19 05:40:30 +0000 devel/py-backports.entry-points-selectable: Add py-backports.entry-points-selectable 1.1.0 Compatibility shim to ease adoption of importlib_metadata 3.6. Supplies forward-compatibility of "selectable" entry points even on older versions of importlib_metadata and importlib.metadata, and avoids usage that triggers deprecation warnings. Use this shim for libraries or applications invoking entry_points() that run on Python older than 3.10 or where importlib_metadata is older than 3.6. In most cases, this shim is unnecessary and the easiest thing to do is simply require importlib_metadata >= 3.6 on all Pythons (or only those prior to 3.10a7). In some environments, a library may be constrained on which versions of importlib_metadata can be required, so this library bridges that gap. WWW: https://github.com/jaraco/backports.entry_points_selectable --- devel/Makefile | 1 + .../py-backports.entry-points-selectable/Makefile | 27 ++++++++++++++++++++++ .../py-backports.entry-points-selectable/distinfo | 3 +++ .../py-backports.entry-points-selectable/pkg-descr | 13 +++++++++++ 4 files changed, 44 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c33f904cad3b..d7efb1388c32 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4235,6 +4235,7 @@ SUBDIR += py-backcall SUBDIR += py-backports SUBDIR += py-backports.csv + SUBDIR += py-backports.entry-points-selectable SUBDIR += py-backports.zoneinfo SUBDIR += py-banal SUBDIR += py-bandit diff --git a/devel/py-backports.entry-points-selectable/Makefile b/devel/py-backports.entry-points-selectable/Makefile new file mode 100644 index 000000000000..67ae49a54479 --- /dev/null +++ b/devel/py-backports.entry-points-selectable/Makefile @@ -0,0 +1,27 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= backports.entry-points-selectable +PORTVERSION= 1.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= backports.entry_points_selectable-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Compatibility shim providing selectable entry points for older implementations + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-backports.entry-points-selectable/distinfo b/devel/py-backports.entry-points-selectable/distinfo new file mode 100644 index 000000000000..a3db62851e64 --- /dev/null +++ b/devel/py-backports.entry-points-selectable/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629364644 +SHA256 (backports.entry_points_selectable-1.1.0.tar.gz) = 988468260ec1c196dab6ae1149260e2f5472c9110334e5d51adcb77867361f6a +SIZE (backports.entry_points_selectable-1.1.0.tar.gz) = 8770 diff --git a/devel/py-backports.entry-points-selectable/pkg-descr b/devel/py-backports.entry-points-selectable/pkg-descr new file mode 100644 index 000000000000..7ad190a55db9 --- /dev/null +++ b/devel/py-backports.entry-points-selectable/pkg-descr @@ -0,0 +1,13 @@ +Compatibility shim to ease adoption of importlib_metadata 3.6. Supplies +forward-compatibility of "selectable" entry points even on older versions of +importlib_metadata and importlib.metadata, and avoids usage that triggers +deprecation warnings. + +Use this shim for libraries or applications invoking entry_points() that run on +Python older than 3.10 or where importlib_metadata is older than 3.6. In most +cases, this shim is unnecessary and the easiest thing to do is simply require +importlib_metadata >= 3.6 on all Pythons (or only those prior to 3.10a7). In +some environments, a library may be constrained on which versions of +importlib_metadata can be required, so this library bridges that gap. + +WWW: https://github.com/jaraco/backports.entry_points_selectable