Fix: Set lf-activate-env to use Python 3.8 28/70428/1 v0.79.2
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 2 Aug 2022 00:34:36 +0000 (10:34 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 2 Aug 2022 00:36:49 +0000 (10:36 +1000)
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>
releasenotes/notes/use-python-3.8-lftools-deploy-logs-c817c2e5538c7209.yaml [new file with mode: 0644]
shell/logs-deploy.sh

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 (file)
index 0000000..9ecfdec
--- /dev/null
@@ -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.
index bd41608..79f8db4 100644 (file)
@@ -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: <a href=\"https://$CDN_URL/$s3_path\">https://$CDN_URL/$s3_path</a>"
 fi
-