From: Anil Belur Date: Thu, 9 Mar 2023 16:18:23 +0000 (+0000) Subject: Merge "Fix!: Un-pin tox version from 3.27.1 and remove tox-pyenv" X-Git-Tag: v0.85.0~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=c239626919f0aaceb98d1e27c237af7a3053db74;hp=fd801fd5832b6f8538960e0ddb5fd98d71255b8d;p=releng%2Fglobal-jjb.git Merge "Fix!: Un-pin tox version from 3.27.1 and remove tox-pyenv" --- diff --git a/releasenotes/notes/unpin-tox-ver-rm-tox-pyenv-bf5d731d6c2ce77f.yaml b/releasenotes/notes/unpin-tox-ver-rm-tox-pyenv-bf5d731d6c2ce77f.yaml new file mode 100644 index 00000000..734bf2fe --- /dev/null +++ b/releasenotes/notes/unpin-tox-ver-rm-tox-pyenv-bf5d731d6c2ce77f.yaml @@ -0,0 +1,11 @@ +--- +fixes: + - | + Un-pin tox version from 3.27.1 and remove tox-pyenv. Testing has + demonstrated that tox-pyenv is no longer required to obtain correct + Python runtime versions when running tests. Also, removed Python 3.8 + from the VENV setup where it was being specifically requested. + + Due to unpinning of the tox version, tox.ini configuration files may + need modifying to reflect a change in configuration syntax; where + whitelist_externals needs to be replaced with allowlist_externals. diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index b1a83fad..2894122a 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -37,7 +37,7 @@ done # shellcheck disable=SC1090 . ~/lf-env.sh -lf-activate-venv --python python3.8 --venv-file /tmp/.toxenv tox==3.27.1 tox-pyenv virtualenv +lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv # When a new commands are added in lftools, the docs verify job needs to # run the new command which requires installing the lftools dev version diff --git a/shell/tox-install.sh b/shell/tox-install.sh index 488b5c8e..e4bb50db 100644 --- a/shell/tox-install.sh +++ b/shell/tox-install.sh @@ -17,7 +17,7 @@ set -eux -o pipefail # shellcheck disable=SC1090 source ~/lf-env.sh -lf-activate-venv --python python3.8 --venv-file /tmp/.toxenv tox==3.27.1 tox-pyenv virtualenv +lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv # installs are silent, show version details in log $PYTHON --version diff --git a/shell/tox-run.sh b/shell/tox-run.sh index 56c450f0..ce527cf6 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -24,7 +24,7 @@ cd "$WORKSPACE/$TOX_DIR" || exit 1 # shellcheck disable=SC1090 source ~/lf-env.sh -lf-activate-venv --python python3.8 --venv-file /tmp/.toxenv tox==3.27.1 tox-pyenv virtualenv +lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv if [[ -d /opt/pyenv ]]; then echo "---> Setting up pyenv"