fix for lock -r

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-23 13:40:47 -05:00
parent 9a0aceee2f
commit b8755151f6
2 changed files with 5 additions and 5 deletions
+2
View File
@@ -17,3 +17,5 @@ Pipfile.lock
/.pytest_cache/
/.env
/requirements.txt
+3 -5
View File
@@ -798,13 +798,11 @@ def do_install_dependencies(
# requirements.txt, for pip.
# Additional package selectors, specific to pip's --hash checking mode.
EXCLUDED_PACKAGES = list(BAD_PACKAGES) + ['-e .'] + ['-e file://'] + ['file://']
for l in (deps_list, dev_deps_list):
for i, dep in enumerate(l):
for bad_package in EXCLUDED_PACKAGES:
if dep[0].startswith(bad_package):
l[i] = list(l[i])
l[i][0] = '# {0}'.format(l[i][0])
if '--hash' not in dep[0]:
l[i] = list(l[i])
l[i][0] = '# {0}'.format(l[i][0])
# Output only default dependencies
if not dev: