From fa7358d4f285e11455faed917aa56ad96a43ac1c Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Thu, 11 Oct 2018 18:09:36 +0100 Subject: [PATCH] Correctly normalize package names. Fixes #2956 and #3002 --- pipenv/patched/notpip/_internal/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/patched/notpip/_internal/index.py b/pipenv/patched/notpip/_internal/index.py index 426880e987..1efddac456 100644 --- a/pipenv/patched/notpip/_internal/index.py +++ b/pipenv/patched/notpip/_internal/index.py @@ -766,7 +766,7 @@ def egg_info_matches( return full_match[full_match.index('-'):] name = match.group(0).lower() # To match the "safe" name that pkg_resources creates: - name = name.replace('_', '-') + name = name.replace('_', '-').replace('.', '-') # project name and version must be separated by a dash look_for = search_name.lower() + "-" if name.startswith(look_for):