Update vendored python-dotenv to fix doubles backslashes when loading .env file #3757
Labels
Status: Awaiting Update ⏳
This issue requires more information before assistance can be provided.
Type: Vendored Dependencies
This issue affects vendored dependencies within pipenv.
To preface, my apologies if this is also fixed in the current master as @techalchemy noted on some recent posts I made.
Issue description
When using a
.env
file, pipenv doubles the backslashes but only in the value side of anenvar=value
expressionExpected result
That the value of environment vars as seen within
pipenv shell
and within python (viaos.environ
) are unchanged from the.env
fileActual result
.env
with test cases:Console:
Steps to replicate
Create a
.env
file containing the above, invoke a virtual env using it and follow the commands above$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/usr/local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/local/bin/python3.6'
Python installations found:
3.7.2
:/usr/local/bin/python3.7m
3.7.2
:/usr/local/bin/python3.7
3.6.8
:/usr/local/bin/python3.6
3.6.8
:/usr/local/bin/python3.6m
2.6.6
:/usr/bin/python
2.6.6
:/usr/bin/python2.6
PEP 508 Information:
System environment variables:
SSH_AGENT_PID
HOSTNAME
SELINUX_ROLE_REQUESTED
GPG_AGENT_INFO
TERM
SHELL
HISTSIZE
SSH_CLIENT
SELINUX_USE_CURRENT_RANGE
QTDIR
QTINC
SSH_TTY
KC_SCRIPTS
HISTFILESIZE
USER
LS_COLORS
PIPENV_DOTENV_LOCATION
SSH_AUTH_SOCK
MAIL
>
PWD
LANG
PS1
SELINUX_LEVEL_REQUESTED
HISTCONTROL
PS2
GPG_TTY
SHLVL
HOME
LOGNAME
QTLIB
CVS_RSH
SSH_CONNECTION
LESSOPEN
G_BROKEN_FILENAMES
HISTTIMEFORMAT
_
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_>
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_DOTENV_LOCATION
:/sandbox/prod/ms_source/scripts/project/config/.env
Debug–specific environment variables:
>
:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/dell/srvadmin/bin:/home/user/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/sandbox/prod/ms_source/scripts/project
Contents of
Pipfile
('/sandbox/prod/ms_source/scripts/project/Pipfile'):Contents of
Pipfile.lock
('/sandbox/prod/ms_source/scripts/project/Pipfile.lock'):The text was updated successfully, but these errors were encountered: