mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -1645,6 +1645,10 @@ def install(
|
||||
# Ensure that virtualenv is available.
|
||||
ensure_project(three=three, python=python, system=system, warn=True)
|
||||
|
||||
# Load the --pre settings from the Pipfile.
|
||||
if not pre:
|
||||
pre = project.settings.get('pre')
|
||||
|
||||
if requirements:
|
||||
click.echo(crayons.normal(u'Requirements file provided! Importing into Pipfile…', bold=True), err=True)
|
||||
import_requirements(r=requirements, dev=dev)
|
||||
@@ -1863,6 +1867,11 @@ def lock(three=None, python=False, verbose=False, requirements=False, clear=Fals
|
||||
# Ensure that virtualenv is available.
|
||||
ensure_project(three=three, python=python)
|
||||
|
||||
# Load the --pre settings from the Pipfile.
|
||||
if not pre:
|
||||
pre = project.settings.get('pre')
|
||||
|
||||
|
||||
if requirements:
|
||||
do_init(dev=True, requirements=requirements)
|
||||
|
||||
|
||||
@@ -239,6 +239,11 @@ class Project(object):
|
||||
|
||||
return pfile
|
||||
|
||||
@property
|
||||
def settings(self):
|
||||
"""A dictionary of the settings added to the Pipfile."""
|
||||
return self.parsed_pipfile.get('pipenv', {})
|
||||
|
||||
@property
|
||||
def _lockfile(self):
|
||||
"""Pipfile.lock divided by PyPI and external dependencies."""
|
||||
|
||||
Reference in New Issue
Block a user