Skip to content

Commit 77a7644

Browse files
authored
Remove prompt deprecation warning (#447)
Prompt removal was never done and is not planned anymore
1 parent 826f3fb commit 77a7644

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Diff for: bin/pyenv-sh-activate

-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ if [ -z "${PYENV_VIRTUALENV_DISABLE_PROMPT}" ]; then
225225
fi
226226
;;
227227
* )
228-
if [ -z "${QUIET}" ]; then
229-
echo "pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior." 1>&2
230-
fi
231228
cat <<EOS
232229
export _OLD_VIRTUAL_PS1="\${PS1:-}";
233230
export PS1="(${venv}) \${PS1:-}";

Diff for: test/activate.bats

-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ setup() {
3333
deactivated
3434
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
3535
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
36-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
3736
export _OLD_VIRTUAL_PS1="\${PS1:-}";
3837
export PS1="(venv) \${PS1:-}";
3938
EOS
@@ -86,7 +85,6 @@ deactivated
8685
pyenv-virtualenv: activate venv
8786
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
8887
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
89-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
9088
export _OLD_VIRTUAL_PS1="\${PS1:-}";
9189
export PS1="(venv) \${PS1:-}";
9290
EOS
@@ -114,7 +112,6 @@ export PYENV_VERSION="venv";
114112
export PYENV_ACTIVATE_SHELL=1;
115113
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
116114
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv";
117-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
118115
export _OLD_VIRTUAL_PS1="\${PS1:-}";
119116
export PS1="(venv) \${PS1:-}";
120117
EOS
@@ -191,7 +188,6 @@ export PYENV_VERSION="venv27";
191188
export PYENV_ACTIVATE_SHELL=1;
192189
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
193190
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
194-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
195191
export _OLD_VIRTUAL_PS1="\${PS1:-}";
196192
export PS1="(venv27) \${PS1:-}";
197193
EOS
@@ -217,7 +213,6 @@ export PYENV_VERSION="venv27";
217213
export PYENV_ACTIVATE_SHELL=1;
218214
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
219215
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
220-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
221216
export _OLD_VIRTUAL_PS1="\${PS1:-}";
222217
export PS1="(venv27) \${PS1:-}";
223218
EOS
@@ -390,7 +385,6 @@ export PYENV_VERSION="venv27:2.7.10";
390385
export PYENV_ACTIVATE_SHELL=1;
391386
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
392387
export VIRTUAL_ENV="${PYENV_ROOT}/versions/venv27";
393-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
394388
export _OLD_VIRTUAL_PS1="\${PS1:-}";
395389
export PS1="(venv27) \${PS1:-}";
396390
EOS

Diff for: test/conda-activate.bats

-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ deactivated
3636
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0";
3737
export VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0";
3838
export CONDA_DEFAULT_ENV="root";
39-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
4039
export _OLD_VIRTUAL_PS1="\${PS1:-}";
4140
export PS1="(anaconda-2.3.0) \${PS1:-}";
4241
export CONDA_PREFIX="${TMP}/pyenv/versions/anaconda-2.3.0";
@@ -95,7 +94,6 @@ export PYENV_ACTIVATE_SHELL=1;
9594
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1";
9695
export VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1";
9796
export CONDA_DEFAULT_ENV="root";
98-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
9997
export _OLD_VIRTUAL_PS1="\${PS1:-}";
10098
export PS1="(miniconda-3.9.1) \${PS1:-}";
10199
export CONDA_PREFIX="${TMP}/pyenv/versions/miniconda-3.9.1";
@@ -125,7 +123,6 @@ deactivated
125123
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0/envs/foo";
126124
export VIRTUAL_ENV="${PYENV_ROOT}/versions/anaconda-2.3.0/envs/foo";
127125
export CONDA_DEFAULT_ENV="foo";
128-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
129126
export _OLD_VIRTUAL_PS1="\${PS1:-}";
130127
export PS1="(anaconda-2.3.0/envs/foo) \${PS1:-}";
131128
export CONDA_PREFIX="${TMP}/pyenv/versions/anaconda-2.3.0/envs/foo";
@@ -158,7 +155,6 @@ export PYENV_ACTIVATE_SHELL=1;
158155
export PYENV_VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1/envs/bar";
159156
export VIRTUAL_ENV="${PYENV_ROOT}/versions/miniconda-3.9.1/envs/bar";
160157
export CONDA_DEFAULT_ENV="bar";
161-
pyenv-virtualenv: prompt changing will be removed from future release. configure \`export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
162158
export _OLD_VIRTUAL_PS1="\${PS1:-}";
163159
export PS1="(miniconda-3.9.1/envs/bar) \${PS1:-}";
164160
export CONDA_PREFIX="${TMP}/pyenv/versions/miniconda-3.9.1/envs/bar";

0 commit comments

Comments
 (0)