-
-
Notifications
You must be signed in to change notification settings - Fork 423
Suppress activate/deactivate messages by default #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f627609
ab5b5b9
fa08766
16597f0
34dc769
8ab4463
62e32f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ setup() { | |
unset CONDA_DEFAULT_ENV | ||
unset PYTHONHOME | ||
unset _OLD_VIRTUAL_PYTHONHOME | ||
unset PYENV_VIRTUALENV_VERBOSE_ACTIVATE | ||
unset PYENV_VIRTUALENV_DISABLE_PROMPT | ||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT | ||
unset VIRTUAL_ENV_DISABLE_PROMPT | ||
|
@@ -32,7 +33,6 @@ setup() { | |
assert_success | ||
assert_output <<EOS | ||
deactivated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
pyenv-virtualenv: activate anaconda-2.3.0 | ||
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0"; | ||
export VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0"; | ||
export CONDA_DEFAULT_ENV="root"; | ||
|
@@ -62,7 +62,6 @@ EOS | |
assert_success | ||
assert_output <<EOS | ||
deactivated | ||
pyenv-virtualenv: activate anaconda-2.3.0 | ||
setenv PYENV_VIRTUAL_ENV "${TMP}/pyenv/versions/anaconda-2.3.0"; | ||
setenv VIRTUAL_ENV "${TMP}/pyenv/versions/anaconda-2.3.0"; | ||
setenv CONDA_DEFAULT_ENV "root"; | ||
|
@@ -90,7 +89,6 @@ EOS | |
assert_success | ||
assert_output <<EOS | ||
deactivated | ||
pyenv-virtualenv: activate miniconda-3.9.1 | ||
export PYENV_VERSION="miniconda-3.9.1"; | ||
export PYENV_ACTIVATE_SHELL=1; | ||
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1"; | ||
|
@@ -122,7 +120,6 @@ EOS | |
assert_success | ||
assert_output <<EOS | ||
deactivated | ||
pyenv-virtualenv: activate anaconda-2.3.0/envs/foo | ||
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0/envs/foo"; | ||
export VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0/envs/foo"; | ||
export CONDA_DEFAULT_ENV="foo"; | ||
|
@@ -152,7 +149,6 @@ EOS | |
assert_success | ||
assert_output <<EOS | ||
deactivated | ||
pyenv-virtualenv: activate miniconda-3.9.1/envs/bar | ||
export PYENV_VERSION="miniconda-3.9.1/envs/bar"; | ||
export PYENV_ACTIVATE_SHELL=1; | ||
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1/envs/bar"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ setup() { | |
unset CONDA_DEFAULT_ENV | ||
unset PYTHONHOME | ||
unset _OLD_VIRTUAL_PYTHONHOME | ||
unset PYENV_VIRTUALENV_VERBOSE_ACTIVATE | ||
unset PYENV_VIRTUALENV_DISABLE_PROMPT | ||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT | ||
unset VIRTUAL_ENV_DISABLE_PROMPT | ||
|
@@ -29,7 +30,6 @@ setup() { | |
|
||
assert_success | ||
assert_output <<EOS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
pyenv-virtualenv: deactivate anaconda-2.3.0 | ||
unset PYENV_VIRTUAL_ENV; | ||
unset VIRTUAL_ENV; | ||
unset CONDA_DEFAULT_ENV; | ||
|
@@ -65,7 +65,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate anaconda-2.3.0 | ||
set -e PYENV_VIRTUAL_ENV; | ||
set -e VIRTUAL_ENV; | ||
set -e CONDA_DEFAULT_ENV; | ||
|
@@ -97,7 +96,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate anaconda-2.3.0/envs/foo | ||
unset PYENV_VIRTUAL_ENV; | ||
unset VIRTUAL_ENV; | ||
unset CONDA_DEFAULT_ENV; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ setup() { | |
unset CONDA_DEFAULT_ENV | ||
unset PYTHONHOME | ||
unset _OLD_VIRTUAL_PYTHONHOME | ||
unset PYENV_VIRTUALENV_VERBOSE_ACTIVATE | ||
unset PYENV_VIRTUALENV_DISABLE_PROMPT | ||
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT | ||
unset VIRTUAL_ENV_DISABLE_PROMPT | ||
|
@@ -27,7 +28,6 @@ setup() { | |
|
||
assert_success | ||
assert_output <<EOS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
pyenv-virtualenv: deactivate venv | ||
unset PYENV_VIRTUAL_ENV; | ||
unset VIRTUAL_ENV; | ||
if [ -n "\${_OLD_VIRTUAL_PATH}" ]; then | ||
|
@@ -53,6 +53,7 @@ EOS | |
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv" | ||
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv" | ||
export PYENV_ACTIVATE_SHELL= | ||
export PYENV_VIRTUALENV_VERBOSE_ACTIVATE=1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding test case for |
||
|
||
PYENV_SHELL="bash" run pyenv-sh-deactivate --verbose | ||
|
||
|
@@ -89,7 +90,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
unset PYENV_VIRTUAL_ENV; | ||
unset VIRTUAL_ENV; | ||
if [ -n "\${_OLD_VIRTUAL_PATH}" ]; then | ||
|
@@ -120,7 +120,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
unset PYENV_VERSION; | ||
unset PYENV_ACTIVATE_SHELL; | ||
unset PYENV_VIRTUAL_ENV; | ||
|
@@ -153,7 +152,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
unset PYENV_VERSION; | ||
unset PYENV_ACTIVATE_SHELL; | ||
unset PYENV_VIRTUAL_ENV; | ||
|
@@ -186,7 +184,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
unset PYENV_VIRTUAL_ENV; | ||
unset VIRTUAL_ENV; | ||
if [ -n "\${_OLD_VIRTUAL_PATH}" ]; then | ||
|
@@ -217,7 +214,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
set -e PYENV_VIRTUAL_ENV; | ||
set -e VIRTUAL_ENV; | ||
if [ -n "\$_OLD_VIRTUAL_PATH" ]; | ||
|
@@ -244,7 +240,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
set -e PYENV_VIRTUAL_ENV; | ||
set -e VIRTUAL_ENV; | ||
if [ -n "\$_OLD_VIRTUAL_PATH" ]; | ||
|
@@ -271,7 +266,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
set -e PYENV_VERSION; | ||
set -e PYENV_ACTIVATE_SHELL; | ||
set -e PYENV_VIRTUAL_ENV; | ||
|
@@ -300,7 +294,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
set -e PYENV_VERSION; | ||
set -e PYENV_ACTIVATE_SHELL; | ||
set -e PYENV_VIRTUAL_ENV; | ||
|
@@ -329,7 +322,6 @@ EOS | |
|
||
assert_success | ||
assert_output <<EOS | ||
pyenv-virtualenv: deactivate venv | ||
set -e PYENV_VIRTUAL_ENV; | ||
set -e VIRTUAL_ENV; | ||
if [ -n "\$_OLD_VIRTUAL_PATH" ]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you think how we should manage existing
${VERBOSE}
here? In my guts feeling, this line should care about both${VERBOSE}
and${PYENV_VIRTUALENV_VERBOSE_ACTIVATE}
too....There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean like
if [ -n "$PYENV_VIRTUALENV_VERBOSE_ACTIVATE" -a -n "$VERBOSE" ]
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VERBOSE seems to be used with the called tools only currently?! (python/pip)
I assume the main this about this PR is to change this after all?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically the
${VERBOSE}
is used mainly from internally. I think just checking${PYENV_VIRTUALENV_VERBOSE_ACTIVATE}
here could be sufficient at least for now.