perform proper_case as best effort approach

This commit is contained in:
Nate Prewitt
2017-01-27 13:15:31 -07:00
parent 5c8a0b3f4f
commit d794b8e0a2
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
3.2.5:
- Significant speed improvements for pipenv run and pipenv shell.
- Shell completion via click-completion.
- Perform package name normalization as best effort attempt.
3.2.4:
- $ pipenv uninstall --all
- Don't uninstall setuptools, wheel, pip, or six.
+8 -2
View File
@@ -110,8 +110,14 @@ def ensure_proper_casing():
# Replace each package with proper casing.
for dep in p[section].keys():
# Get new casing for package name.
new_casing = proper_case(dep)
# Attempt to normalize name from PyPI.
# Use provided name if better one can't be found.
try:
# Get new casing for package name.
new_casing = proper_case(dep)
except IOError:
# Unable to normalize package name.
continue
if new_casing == dep:
continue