improvements

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-04 14:53:34 -05:00
parent 35629babb0
commit 3cf44caf4d
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -104,6 +104,7 @@ project = Project()
def load_dot_env():
"""Loads .env file into sys.environ."""
if not PIPENV_DONT_LOAD_ENV:
# If the project doesn't exist yet, check current directory for a .env file
project_directory = project.project_directory or '.'
+2 -1
View File
@@ -10,7 +10,6 @@ import click
import crayons
import delegator
import parse
import requirements
import fuzzywuzzy.process
import requests
import six
@@ -271,6 +270,7 @@ packages = [
def get_requirement(dep):
import pip
import requirements
"""Pre-clean requirement strings passed to the requirements parser.
Ensures that we can accept both local and relative paths, file and VCS URIs,
@@ -852,6 +852,7 @@ def is_required_version(version, specified_version):
def is_vcs(pipfile_entry):
import requirements
"""Determine if dictionary entry from Pipfile is for a vcs dependency."""
if hasattr(pipfile_entry, 'keys'):