git: dc00fd24cfdb - main - devel/py-backports.entry-points-selectable: Add py-backports.entry-points-selectable 1.1.0
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Sep 19 06:06:42 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=dc00fd24cfdb222315921be031793b3dc54db89e
commit dc00fd24cfdb222315921be031793b3dc54db89e
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-09-19 05:25:34 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
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 <sunpoet at FreeBSD.org>
+
+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 at 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 <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
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
More information about the dev-commits-ports-all
mailing list