python-backports.entry-points-selectable
Port variant py310
Summary Compatibility shim for importlib_metadata (3.10)
Package version 1.2.0
Homepage https://github.com/jaraco/backports.entry_points_selectable
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v11
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 23 JAN 2023, 06:04:31 UTC
Port created 15 JUL 2021, 22:41:18 UTC
Subpackage Descriptions
single :alt: tests :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 your project 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 downstream project.
Configuration Switches (platform-specific settings discarded)
PY310 ON Build using Python 3.10 PY311 OFF Build using Python 3.11
Package Dependencies by Type
Build (only) python-pip:single:py310
autoselect-python:single:standard
Build and Runtime python310:single:standard
Download groups
main mirror://PYPIWHL/87/9f/1f2b0064c8dc23da29c7973bf07ada730bcb6b52e1cd1f3decb6b711d643
Distribution File Information
ae81aeef71c2de28818b26a588e4a4d98d94c6d8e738525aec827a6e2974753d 6170 backports.entry_points_selectable-1.2.0-py3-none-any.whl
Ports that require python-backports.entry-points-selectable:py310
No other ports depend on this one.