mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
perform proper_case as best effort approach
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user