Skip to content

Commit 442e235

Browse files
authored
Update Python versions (#1472)
1 parent 17832c6 commit 442e235

20 files changed

Lines changed: 35 additions & 44 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
23+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2424

2525
steps:
2626
- name: Clone Lithops repository

examples/call_async_cython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Commands to compile the function.py into function.so (Ubuntu):
66
cython3 -3 --embed -X always_allow_keywords=true -o function.c function.py
7-
gcc -shared -o function.so -fPIC -I /usr/include/python3.9 function.c
7+
gcc -shared -o function.so -fPIC -I /usr/include/python3.12 function.c
88
99
To make this example working, you have to delete funtion.py and rename
1010
function.cpython-39-x86_64-linux-gnu.so -> function.so

examples/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Commands to compile the function.py into function.so (Ubuntu):
55
cython3 -3 --embed -X always_allow_keywords=true -o function.c function.py
6-
gcc -shared -o function.so -fPIC -I /usr/include/python3.9 function.c
6+
gcc -shared -o function.so -fPIC -I /usr/include/python3.12 function.c
77
"""
88

99

lithops/serverless/backends/aliyun_fc/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
BUILD_DIR = os.path.join(TEMP_DIR, 'AliyunRuntimeBuild')
3434

3535
AVAILABLE_PY_RUNTIMES = {
36-
'3.9': 'python3.9',
37-
'3.10': 'python3.10'
36+
'3.10': 'python3.10',
37+
'3.12': 'python3.12',
3838
}
3939

4040
REQUIREMENTS_FILE = """

lithops/serverless/backends/aws_lambda/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
]
3333

3434
AVAILABLE_PY_RUNTIMES = {
35-
'3.8': 'python3.8',
36-
'3.9': 'python3.9',
3735
'3.10': 'python3.10',
3836
'3.11': 'python3.11',
39-
'3.12': 'python3.12'
37+
'3.12': 'python3.12',
38+
'3.13': 'python3.13',
39+
'3.14': 'python3.14',
4040
}
4141

4242
USER_RUNTIME_PREFIX = 'lithops.user_runtimes'

lithops/serverless/backends/azure_functions/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'trigger': 'pub/sub'
3636
}
3737

38-
AVAILABLE_PY_RUNTIMES = ['3.8', '3.9', '3.10', '3.11']
38+
AVAILABLE_PY_RUNTIMES = ['3.10', '3.11', '3.12', '3.13', '3.14']
3939

4040
REQUIRED_AZURE_STORAGE_PARAMS = ('storage_account_name', 'storage_account_key')
4141
REQUIRED_AZURE_FUNCTIONS_PARAMS = ('resource_group', 'region')

lithops/serverless/backends/gcp_functions/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
RUNTIME_MEMORY_OPTIONS = {128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}
3030

3131
AVAILABLE_PY_RUNTIMES = {
32-
'3.8': 'python38',
33-
'3.9': 'python39',
3432
'3.10': 'python310',
3533
'3.11': 'python311',
3634
'3.12': 'python312',
37-
'3.13': 'python313'
35+
'3.13': 'python313',
36+
'3.14': 'python314',
3837
}
3938

4039
USER_RUNTIMES_PREFIX = 'lithops.user_runtimes'

lithops/serverless/backends/ibm_cf/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
import os
1919

2020
AVAILABLE_PY_RUNTIMES = {
21-
'3.8': 'docker.io/lithopscloud/ibmcf-python-v38',
22-
'3.9': 'docker.io/lithopscloud/ibmcf-python-v39',
2321
'3.10': 'docker.io/lithopscloud/ibmcf-python-v310',
2422
'3.11': 'docker.io/lithopscloud/ibmcf-python-v311',
2523
'3.12': 'docker.io/lithopscloud/ibmcf-python-v312'

lithops/serverless/backends/openwhisk/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import os
1818

1919
AVAILABLE_PY_RUNTIMES = {
20-
'3.8': 'docker.io/lithopscloud/openwhisk-python-v38',
21-
'3.9': 'docker.io/lithopscloud/openwhisk-python-v39',
2220
'3.10': 'docker.io/lithopscloud/openwhisk-python-v310',
2321
'3.11': 'docker.io/lithopscloud/openwhisk-python-v311',
2422
'3.12': 'docker.io/lithopscloud/openwhisk-python-v312'

lithops/serverless/backends/oracle_f/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
ENTRYPOINT ["/usr/local/bin/fdk", "handler/entry_point.py", "handler"]
7777
"""
7878

79-
AVAILABLE_PY_RUNTIMES = ['3.8', '3.9', '3.11']
79+
AVAILABLE_PY_RUNTIMES = ['3.11', '3.12']
8080

8181
REQ_PARAMS_1 = ('compartment_id', 'user', 'key_file', 'region', 'tenancy', 'fingerprint')
8282
REQ_PARAMS_2 = ('subnet_id', )

0 commit comments

Comments
 (0)