Commit b29c4e27 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #859 from liaoishere/fix-entrypoint-doc

Make Entrypoint methods docs up to date.
parents 03083d6f 959e12ca
......@@ -835,6 +835,8 @@ addition, the following methods are provided:
Load the entry point, returning the advertised Python object, or raise
``ImportError`` if it cannot be obtained. If `require` is a true value,
then ``require(env, installer)`` is called before attempting the import.
Parameters to load are deprecated. Call ``require`` and ``resolve``
separately.
``require(env=None, installer=None)``
Ensure that any "extras" needed by the entry point are available on
......@@ -846,6 +848,10 @@ addition, the following methods are provided:
taking a ``Requirement`` instance and returning a matching importable
``Distribution`` instance or None.
``resolve()``
Resolve the entry point from its module and attrs, returning the advertised
Python object.
``__str__()``
The string form of an ``EntryPoint`` is a string that could be passed to
``EntryPoint.parse()`` to produce an equivalent ``EntryPoint``.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment