python-backports.entry-points-selectable
Port variant v11
Summary Compatibility shim for importlib_metadata (3.11)
BROKEN
Package version 1.3.0
Homepage https://github.com/jaraco/backports.entry_points_selectable
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 30 NOV 2023, 17:31:18 UTC
Port created 15 JUL 2021, 22:41:18 UTC
Subpackage Descriptions
single :alt: tests :alt: Ruff :alt: Code style: Black 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. To use this shim, add ``backports.entry_points_selectable`` to the affected project's requirements. It will require importlib_metadata automatically where needed (prior to Python 3.8) but be satisfied by older versions. Projects should still require importlib_metadata as appropriate for API uses other than for entry_points. Then in code, instead of ``from importlib.metadata import entry_points``, use:: from backports.entry_points_selectable import entry_points And then use the "selectable" features (pass keyword arguments to entry_points or invoke ``.select()`` on the result). This backport has a very lenient dependency on `importlib_metadata` for older Pythons and is a single module implementation. If adding a dependency is a concern, this module may be vendored into the affected project.
Configuration Switches (platform-specific settings discarded)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:std
Build and Runtime python311:single:std
Download groups
main mirror://PYPIWHL/5a/78/b3ba5d804ae21e26e6179bbe4e1338deaaba9d20161918f59e20e9d92ea0
Distribution File Information
66f5da003eb4b283c7b60581bc8bb0baf0d810eb3e3068da786d3821b4d5746a 6217 backports.entry_points_selectable-1.3.0-py3-none-any.whl
Ports that require python-backports.entry-points-selectable:v11
No other ports depend on this one.