From 9915b0bb42077428478e277ed78d1d2016223028 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 2 Aug 2022 10:34:36 +1000 Subject: [PATCH] Fix: Set lf-activate-env to use Python 3.8 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 --- ...se-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml | 14 ++++++++++++++ shell/logs-deploy.sh | 3 +-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/use-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml diff --git a/releasenotes/notes/use-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml b/releasenotes/notes/use-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml new file mode 100644 index 00000000..9ecfdec5 --- /dev/null +++ b/releasenotes/notes/use-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml @@ -0,0 +1,14 @@ +--- +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. diff --git a/shell/logs-deploy.sh b/shell/logs-deploy.sh index bd416080..79f8db4f 100644 --- a/shell/logs-deploy.sh +++ b/shell/logs-deploy.sh @@ -12,7 +12,7 @@ echo "---> logs-deploy.sh" # 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' @@ -64,4 +64,3 @@ else echo "S3 build logs: https://$CDN_URL/$s3_path" fi - -- 2.16.6