python-backports.entry-points-selectable
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)
PY312 OFF Build using Python 3.12
PY313 ON Build using Python 3.13
Package Dependencies by Type
Download groups
main |
mirror://PYPIWHL/5a/78/b3ba5d804ae21e26e6179bbe4e1338deaaba9d20161918f59e20e9d92ea0 |
Distribution File Information
66f5da003eb4b283c7b60581bc8bb0baf0d810eb3e3068da786d3821b4d5746a 6217 python-src/backports.entry_points_selectable-1.3.0-py3-none-any.whl
Ports that require python-backports.entry-points-selectable:v13
No other ports depend on this one. |