You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Return an iterable of all Distribution instances capable of
233
-
loading the metadata for packages matching the name
234
-
(or all names if not supplied) along the paths in the list
235
-
of directories ``path`` (defaults to sys.path).
234
+
loading the metadata for packages for the indicated ``context``.
236
235
"""
237
236
237
+
The ``DistributionFinder.Context`` object provides ``.path`` and ``.name``
238
+
properties indicating the path to search and names to match and may
239
+
supply other relevant context.
240
+
238
241
What this means in practice is that to support finding distribution package
239
242
metadata in locations other than the file system, you should derive from
240
-
``Distribution`` and implement the ``load_metadata()`` method. This takes a
241
-
single argument which is the name of the package whose metadata is being
242
-
found. This instance of the ``Distribution`` base abstract class is what your
243
-
finder's ``find_distributions()`` method should return.
243
+
``Distribution`` and implement the ``load_metadata()`` method. Then from
244
+
your finder, return instances of this derived ``Distribution`` in the
245
+
``find_distributions()`` method.
244
246
245
247
246
248
.. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points
Update importlib.metadata with changes from `importlib_metadata 0.21 <https://gitlab.com/python-devs/importlib_metadata/blob/0.21/importlib_metadata/docs/changelog.rst>`_.
0 commit comments