diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-14 17:47:19 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-14 17:47:19 -0500 |
| commit | d7dfa90dc95ff02301f08e9fff41edeea6f10700 (patch) | |
| tree | 4ab0a1b4c14b37ab813ae5f0622ad6208745ebb7 /setuptools/_entry_points.py | |
| parent | abbaacc62aa26c611d68b935363765af702c0861 (diff) | |
| download | python-setuptools-git-d7dfa90dc95ff02301f08e9fff41edeea6f10700.tar.gz | |
Add test for loading entry points from a string. Ref #3103.
Diffstat (limited to 'setuptools/_entry_points.py')
| -rw-r--r-- | setuptools/_entry_points.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/_entry_points.py b/setuptools/_entry_points.py index 0cf2691b..2641eaa4 100644 --- a/setuptools/_entry_points.py +++ b/setuptools/_entry_points.py @@ -53,6 +53,15 @@ def load(eps): @load.register(str) def _(eps): + r""" + >>> ep, = load('[console_scripts]\nfoo=bar') + >>> ep.group + 'console_scripts' + >>> ep.name + 'foo' + >>> ep.value + 'bar' + """ return validate(metadata.EntryPoints._from_text(eps)) |
