python-backports.entry-points-selectable
Port variant py38
Summary Compatibility shim for importlib_metadata (PY38)
Package version 1.1.1
Homepage https://github.com/jaraco/backports.entry_points_selectable
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py39
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 09 NOV 2021, 04:10:12 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)
PY38 ON Build using Python 3.8 PY39 OFF Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py38
autoselect-python:single:standard
Build and Runtime python38:single:standard
Download groups
main mirror://PYPIWHL/6d/2e/a6789183415658c7f2c41da8599d53077bd222233039f5c92bffbf23b28d
Distribution File Information
7fceed9532a7aa2bd888654a7314f864a3c16a4e710b34a58cfc0f08114c663b 6188 backports.entry_points_selectable-1.1.1-py2.py3-none-any.whl
Ports that require python-backports.entry-points-selectable:py38
python-virtualenv:py38 Virtual Python Environment builder (PY38)