Skip to content

Commit

Permalink
Merge remote-tracking branch 'devxpy/master' into maintenance/merge-3…
Browse files Browse the repository at this point in the history
…191-3196-3209

- Closes #2200
- Closes #3112 (via merge)

Signed-off-by: Dan Ryan <dan@danryan.co>
  • Loading branch information
techalchemy committed Nov 14, 2018
2 parents ec166f9 + 2b195dd commit e864343
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def uninstall(
three=state.three,
python=state.python,
system=state.system,
lock=not skip_lock,
lock=not state.installstate.skip_lock,
all_dev=all_dev,
all=all,
keep_outdated=state.installstate.keep_outdated,
Expand Down
2 changes: 1 addition & 1 deletion pipenv/cli/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def callback(ctx, param, value):
return value
return option("--skip-lock", is_flag=True, default=False, expose_value=False,
help=u"Skip locking mechanisms and use the Pipfile instead during operation.",
callback=callback, type=click.types.BOOL)(f)
envvar="PIPENV_SKIP_LOCK", callback=callback, type=click.types.BOOL)(f)


def keep_outdated_option(f):
Expand Down
11 changes: 11 additions & 0 deletions pipenv/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@
if interactive.
"""

PIPENV_SKIP_LOCK = False
"""If set, Pipenv won't lock dependencies automatically.
This might be desirable if a project has large number of dependencies,
because locking is an inherently slow operation.
Default is to lock dependencies and update ``Pipfile.lock`` on each run.
NOTE: This only affects the ``install`` and ``uninstall`` commands.
"""

PIPENV_PYUP_API_KEY = os.environ.get("PIPENV_PYUP_API_KEY", "1ab8d58f-5122e025-83674263-bc1e79e0")

# Internal, support running in a different Python from sys.executable.
Expand Down

0 comments on commit e864343

Please sign in to comment.