Set lf-activate-env to use Python 3.8 while running lftools deploy
logs. This fixes the below warnings which when jobs try to use
default version of python 3.6 which is EOL.
CryptographyDeprecationWarning: Python 3.6 is no longer supported
by the Python core team. Therefore, support for it is deprecated in
cryptography and will be removed in a future release.
PythonDeprecationWarning: Boto3 will no longer support Python 3.6
starting May 30, 2022. To continue receiving service updates, bug
fixes, and security updates please upgrade to Python 3.7 or later.
Issue-ID: RELENG-4348
Change-Id: I7177eda0afab58bd775801e955c8759c57554ff3
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Set lf-activate-env to use Python 3.8 while running lftools deploy logs.
+ This fixes the below warnings which when jobs try to use default
+ version of python 3.6 which is EOL.
+
+ CryptographyDeprecationWarning: Python 3.6 is no longer supported
+ by the Python core team. Therefore, support for it is deprecated in
+ cryptography and will be removed in a future release.
+
+ PythonDeprecationWarning: Boto3 will no longer support Python 3.6 starting
+ May 30, 2022. To continue receiving service updates, bug fixes, and
+ security updates please upgrade to Python 3.7 or later.
# shellcheck disable=SC1090
source ~/lf-env.sh
-lf-activate-venv lftools
+lf-activate-venv --python 3.8 lftools
# Ensure we fail the job if any steps fail
# Disable 'globbing'
echo "S3 build logs: <a href=\"https://$CDN_URL/$s3_path\">https://$CDN_URL/$s3_path</a>"
fi
-