Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blambda support for python 3.10 #14

Open
wants to merge 2 commits into
base: added_support_py3.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions blambda/blambda-env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions blambda/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
'python310': LambdaRuntime('python3.10', '.py', 'python/src'),
'coffee': LambdaRuntime('nodejs4.3', '.coffee', 'node/src')
}

Expand Down
4 changes: 3 additions & 1 deletion blambda/utils/env_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
py310 = 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,
py310.name: py310
}

DEFAULT_RUNTIME = py36
Expand Down