mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
User-configuraable max-depth for Pipfile searching.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
3.3.2:
|
||||
- User-configuraable max-depth for Pipfile searching.
|
||||
- Bugfix.
|
||||
3.3.1:
|
||||
- Bugfix for install.
|
||||
3.3.0:
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# //___/ / / / //___/ / // // / / || / /
|
||||
# // / / // ((____ // / / ||/ /
|
||||
|
||||
__version__ = '3.3.1'
|
||||
__version__ = '3.3.2'
|
||||
|
||||
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user