User-configuraable max-depth for Pipfile searching.

This commit is contained in:
2017-02-01 16:26:13 -05:00
parent 02287209c2
commit 3daeb710e5
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -1,3 +1,6 @@
3.3.2:
- User-configuraable max-depth for Pipfile searching.
- Bugfix.
3.3.1:
- Bugfix for install.
3.3.0:
+1 -1
View File
@@ -3,4 +3,4 @@
# //___/ / / / //___/ / // // / / || / /
# // / / // ((____ // / / ||/ /
__version__ = '3.3.1'
__version__ = '3.3.2'
+5 -1
View File
@@ -11,6 +11,10 @@ from .utils import format_toml, mkdir_p
from .utils import convert_deps_from_pip
# User-configuraable max-depth for Pipfile searching.
PIPENV_MAX_DEPTH = int(os.environ.get('PIPENV_MAX_DEPTH', '3'))
class Project(object):
"""docstring for Project"""
def __init__(self):
@@ -64,7 +68,7 @@ class Project(object):
@property
def pipfile_location(self):
try:
return pipfile.Pipfile.find()
return pipfile.Pipfile.find(max_depth=PIPENV_MAX_DEPTH)
except RuntimeError:
return None