Commit d1f16fdd authored by Jason R. Coombs's avatar Jason R. Coombs

Use simpler Requirement from packaging.requirements

parent 75b870b9
......@@ -2392,7 +2392,9 @@ class EntryPoint(object):
self.name = name
self.module_name = module_name
self.attrs = tuple(attrs)
self.extras = Requirement.parse(("x[%s]" % ','.join(extras))).extras
ex_spec = "x[%s]" % ','.join(extras)
req = packaging.requirements.Requirement(ex_spec)
self.extras = tuple(req.extras)
self.dist = dist
def __str__(self):
......
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