Commit 110e541b authored by Jason R. Coombs's avatar Jason R. Coombs

Merge backout

parents 5e00a02e 8ae39ab3
......@@ -2269,14 +2269,13 @@ CBRACKET = re.compile(r"\s*\]").match
MODULE = re.compile(r"\w+(\.\w+)*$").match
EGG_NAME = re.compile(
r"""
(?P<name>.*?) (
(?P<name>[^-]+) (
-(?P<ver>[^-]+) (
-py(?P<pyver>[^-]+) (
-(?P<plat>.+)
)?
)?
)?
$
""",
re.VERBOSE | re.IGNORECASE,
).match
......
......@@ -207,16 +207,6 @@ class TestDistro:
with pytest.raises(pkg_resources.UnknownExtra):
d.requires(["foo"])
def test_pkg_name_with_hyphen(self):
"Package names with hyphens are supported"
name = 'setuptools-markdown-1.0.egg'
dist = Distribution.from_filename(name)
assert dist.project_name == "setuptools-markdown"
assert dist.key == "setuptools-markdown"
assert dist.version == "1.0"
assert dist.py_version is None
assert dist.platform is None
class TestWorkingSet:
def test_find_conflicting(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