8000 Possible fix to #103; whl capitalization by ScottyMJacobson · Pull Request #104 · erikrose/peep · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Possible 8000 fix to #103; whl capitalization #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion peep.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def version_of_wheel(filename, package_name):
whl_package_name, version, _rest = filename.split('-', 2)
# Do the alteration to package_name from PEP 427:
our_package_name = re.sub(r'[^\w\d.]+', '_', package_name, re.UNICODE)
if whl_package_name != our_package_name:
if whl_package_name.lower() != our_package_name.lower():
give_up(filename, whl_package_name)
return version

Expand Down
0