pipenv creates empty Pipfile in some folders
See original GitHub issueIssue description
Empty Pipfile
are created from time to time in some folders of my app. They always appear in the same folders, and it seems that they appear when I have opened a file in the same directory in Vim. They can appear in 9 different locations at time of writing.
Expected result
pipenv should not create those empty files.
Actual result
Example paths:
api/repo/column/Pipfile
api/lib/sqs_task/Pipfile
api/tests/factory/Pipfile
The only thing they seem to have in common is that they are 3 layers deep.
Steps to replicate
Actually, I really don’t know how to replicate this and would appreciate some guidance. Since it seems to happen only when I’m working on the files, could it be related to my editing setup? I’m using:
- vim (dotfiles: https://github.com/charlax/dotvim)
- black
$ pipenv --support
NOTE: I have redacted the areas I assume are irrelevant.
Pipenv version: '2018.11.26'
Pipenv location: '/Users/ca/Library/Python/3.7/lib/python/site-packages/pipenv'
Python location: '/usr/local/opt/python/bin/python3.7'
Python installations found:
3.7.4
:/usr/local/bin/python3
3.7.4
:/usr/local/bin/python3.7m
2.7.16
:/usr/local/bin/python
2.7.16
:/usr/local/bin/pythonw
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/pythonw
2.7.10
:/usr/bin/python2.7
PEP 508 Information:
{'implementation_name': 'cpython',
'implementation_version': '3.7.4',
'os_name': 'posix',
'platform_machine': 'x86_64',
'platform_python_implementation': 'CPython',
'platform_release': '18.7.0',
'platform_system': 'Darwin',
'platform_version': 'Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT '
'2019; root:xnu-4903.270.47~4/RELEASE_X86_64',
'python_full_version': '3.7.4',
'python_version': '3.7',
'sys_platform': 'darwin'}
System environment variables:
TERM_SESSION_ID
LC_TERMINAL_VERSION
COLORFGBG
XPC_FLAGS
PWD
SHELL
LC_CTYPE
TERM_PROGRAM_VERSION
TERM_PROGRAM
PATH
LC_TERMINAL
COLORTERM
TERM
HOME
TMPDIR
USER
LOGNAME
SHLVL
OLDPWD
ZSH
EDITOR
EDITOR_GUI
CODE_PATH
FORK_PATH
GOPATH
VIM_DOTFILES
PYENV_ROOT
MANPATH
DOTFILES
VIRTUAL_ENV_DISABLE_PROMPT
PROMPT
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/ca/.pyenv/bin:/usr/local/opt/gettext/bin:/usr/local/bin:/usr/local/sbin:/Users/ca/.dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/ca/bin:/Users/ca/Library/Python/3.7/bin:/Users/ca/.local/bin
SHELL
:/usr/local/bin/zsh
EDITOR
:nvim
LANG
:en_US.UTF-8
PWD
:[redacted]/api
Contents of Pipfile
(‘[redacted]/api/Pipfile’):
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[redacted]
[dev-packages]
[redacted]
[requires]
python_version = "3.6"
Contents of Pipfile.lock
(‘[redacted]/api/Pipfile.lock’):
{
"_meta": {
"hash": {
"sha256": "558646c3fe87a703b88b2e80732264a2e1c4b93854d79f2cd969b26f88dc180e"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.6"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
[redacted]
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (7 by maintainers)
Same with Emacs pipenv.el
That’s fine. I was trying to understand the design decisions behind why pipenv only searches within 3 depth. thanks.