Revert "Revert "Merge branch 'master' into fix_link_parsing""

This reverts commit 94eb22a8ce.
This commit is contained in:
2017-01-27 22:24:30 -05:00
parent 94eb22a8ce
commit bfae4960d5
7 changed files with 28 additions and 9 deletions
+2
View File
@@ -1,5 +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.
-3
View File
@@ -1,6 +1,3 @@
[dev-packages]
pytest = "*"
[packages]
click = "*"
crayons = "*"
+10
View File
@@ -58,6 +58,16 @@ Other Commands
- ``run`` will run a given command from the virtualenv, with any arguments forwarded (e.g. ``$ pipenv run python``).
- ``check`` asserts that PEP 508 requirements are being met by the current environment.
Shell Completion
////////////////
Set ``_PIPENV_COMPLETE`` and then source the output of the program. For example, with fish, put this
in your ``~/.config/fish/completions/pipenv.fish``::
eval (env _PIPENV_COMPLETE=source-fish pipenv)
Magic shell completions are now enabled!
Caveats
///////
+1 -1
View File
@@ -1 +1 @@
__version__ = '3.2.TEST'
__version__ = '3.2.5'
+11 -2
View File
@@ -8,6 +8,7 @@ import shutil
import signal
import click
import click_completion
import crayons
import delegator
import parse
@@ -32,6 +33,8 @@ if sys.version_info < (3, 3):
else:
from shutil import get_terminal_size
# Enable shell completion.
click_completion.init()
# Disable warnings for Python 2.6.
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
@@ -106,8 +109,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
+3 -2
View File
@@ -26,7 +26,8 @@ if sys.argv[-1] == "publish":
required = [
'crayons',
'toml',
'click',
'click>=6.7',
'click-completion',
'pip',
'parse',
'virtualenv',
@@ -34,7 +35,7 @@ required = [
'requirements-parser',
'pexpect',
'pipfile==0.0.1',
'requests'
'requests>=2.4.0'
]
# Backport required for earlier versions of Python.
+1 -1
View File
@@ -1 +1 @@
requests
requests>2.3.0