We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f83da68 + 7844b38 commit e9e2750Copy full SHA for e9e2750
changelog.d/3103.misc.rst
@@ -0,0 +1 @@
1
+Fixed issue where string-based entry points would be omitted.
setuptools/_entry_points.py
@@ -53,7 +53,16 @@ def load(eps):
53
54
@load.register(str)
55
def _(eps):
56
- return validate(metadata.EntryPoints._from_text(eps))
+ r"""
57
+ >>> ep, = load('[console_scripts]\nfoo=bar')
58
+ >>> ep.group
59
+ 'console_scripts'
60
+ >>> ep.name
61
+ 'foo'
62
+ >>> ep.value
63
+ 'bar'
64
+ """
65
+ return validate(metadata.EntryPoints(metadata.EntryPoints._from_text(eps)))
66
67
68
load.register(type(None), lambda x: x)
0 commit comments