From f441d8a25d430548fc16fce5383bc6b89fe7e55f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Aug 2024 16:29:50 +0530 Subject: [PATCH 1/2] Blambda support for python 3.10 --- blambda/blambda-env | 2 ++ blambda/new.py | 1 + blambda/utils/env_manager.py | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/blambda/blambda-env b/blambda/blambda-env index a702147..1716170 100644 --- a/blambda/blambda-env +++ b/blambda/blambda-env @@ -34,6 +34,8 @@ elif [[ ${BLAMBDA_ENV} == 'blambda-3.8' ]]; then PYENV_PATH = '.pyenv/versions/3.8.1/lib/python3.8/' elif [[ ${BLAMBDA_ENV} == 'blambda-3.9' ]]; then PYENV_PATH = '.pyenv/versions/3.9.13/lib/python3.9/' +elif [[ ${BLAMBDA_ENV} == 'blambda-3.10' ]]; then + PYENV_PATH = '.pyenv/versions/3.10.4/lib/python3.10/' else echo "blambda couldn't read the python environment from manifest, aborting!" return 1 diff --git a/blambda/new.py b/blambda/new.py index d731c4f..a4831ac 100644 --- a/blambda/new.py +++ b/blambda/new.py @@ -16,6 +16,7 @@ 'python37': LambdaRuntime('python3.7', '.py', 'python/src'), 'python38': LambdaRuntime('python3.8', '.py', 'python/src'), 'python39': LambdaRuntime('python3.9', '.py', 'python/src'), + 'python40': LambdaRuntime('python3.10', '.py', 'python/src'), 'coffee': LambdaRuntime('nodejs4.3', '.coffee', 'node/src') } diff --git a/blambda/utils/env_manager.py b/blambda/utils/env_manager.py index 37abc6f..04a0689 100644 --- a/blambda/utils/env_manager.py +++ b/blambda/utils/env_manager.py @@ -18,13 +18,15 @@ py37 = LambdaRuntime('python3.7', '3.7.5', 'blambda-3.7') py38 = LambdaRuntime('python3.8', '3.8.1', 'blambda-3.8') py39 = LambdaRuntime('python3.9', '3.9.13', 'blambda-3.9') +py40 = LambdaRuntime('python3.10', '3.10.4', 'blambda-3.10') runtimes = { py27.name: py27, py36.name: py36, py37.name: py37, py38.name: py38, - py39.name: py39 + py39.name: py39, + py40.name: py40 } DEFAULT_RUNTIME = py36 From bd3f9ce110d67bf6da0dc224c2e784f64bf4d076 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Aug 2024 16:47:57 +0530 Subject: [PATCH 2/2] minor fixes --- blambda/new.py | 2 +- blambda/utils/env_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blambda/new.py b/blambda/new.py index a4831ac..e90dd57 100644 --- a/blambda/new.py +++ b/blambda/new.py @@ -16,7 +16,7 @@ 'python37': LambdaRuntime('python3.7', '.py', 'python/src'), 'python38': LambdaRuntime('python3.8', '.py', 'python/src'), 'python39': LambdaRuntime('python3.9', '.py', 'python/src'), - 'python40': LambdaRuntime('python3.10', '.py', 'python/src'), + 'python310': LambdaRuntime('python3.10', '.py', 'python/src'), 'coffee': LambdaRuntime('nodejs4.3', '.coffee', 'node/src') } diff --git a/blambda/utils/env_manager.py b/blambda/utils/env_manager.py index 04a0689..2ec00fa 100644 --- a/blambda/utils/env_manager.py +++ b/blambda/utils/env_manager.py @@ -18,7 +18,7 @@ py37 = LambdaRuntime('python3.7', '3.7.5', 'blambda-3.7') py38 = LambdaRuntime('python3.8', '3.8.1', 'blambda-3.8') py39 = LambdaRuntime('python3.9', '3.9.13', 'blambda-3.9') -py40 = LambdaRuntime('python3.10', '3.10.4', 'blambda-3.10') +py310 = LambdaRuntime('python3.10', '3.10.4', 'blambda-3.10') runtimes = { py27.name: py27, @@ -26,7 +26,7 @@ py37.name: py37, py38.name: py38, py39.name: py39, - py40.name: py40 + py310.name: py310 } DEFAULT_RUNTIME = py36