Skip to content

Commit cf2c85a

Browse files
committed
Add support to Python 3.12 and 3.13 (elyra-ai#3311)
Signed-off-by: Guilherme Caponetto <[email protected]>
1 parent 7976eca commit cf2c85a

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
env:
2525
FORCE_COLOR: true
2626
NODE_VERSION: 22
27-
PYTHON_VERSION: 3.11
27+
PYTHON_VERSION: 3.13
2828
QUAY_WORKBENCH_IMAGES_REPOSITORY: 'opendatahub/workbench-images'
2929
QUAY_WORKBENCH_IMAGES_TAG_PREFIX_CSV: 'jupyter-trustyai-ubi9-python-3.11-20250,cuda-jupyter-tensorflow-ubi9-python-3.11-20250'
3030
NODE_OPTIONS: '--max_old_space_size=4096'
@@ -86,7 +86,7 @@ jobs:
8686
runs-on: ubuntu-latest
8787
strategy:
8888
matrix:
89-
python-version: [3.9, '3.10', '3.11']
89+
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
9090
steps:
9191
- uses: actions/checkout@v4
9292
- uses: actions/setup-python@v5
@@ -213,7 +213,7 @@ jobs:
213213
runs-on: ubuntu-latest
214214
strategy:
215215
matrix:
216-
python-version: [3.9, '3.10', '3.11']
216+
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
217217
steps:
218218
- uses: actions/checkout@v4
219219
- name: Validate image environment

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ CONTAINER_OUTPUT_OPTION?=--output=type=docker
3535
# Python execs
3636
PYTHON?=python3
3737
PYTHON_PIP=$(PYTHON) -m pip
38-
PYTHON_VERSION?=3.11
38+
PYTHON_VERSION?=3.13
3939

4040
CONDA_ACTIVATE = source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate
4141

elyra/airflow/bootstrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def package_install(cls) -> None:
473473
@classmethod
474474
def determine_elyra_requirements(cls) -> Any:
475475
if sys.version_info.major == 3:
476-
if sys.version_info.minor in [9, 10, 11]:
476+
if sys.version_info.minor in [9, 10, 11, 12, 13]:
477477
return "requirements-elyra.txt"
478478
logger.error(
479479
f"This version of Python '{sys.version_info.major}.{sys.version_info.minor}' "

elyra/kfp/bootstrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def package_install(cls, user_volume_path) -> None:
635635
@classmethod
636636
def determine_elyra_requirements(cls) -> Any:
637637
if sys.version_info.major == 3:
638-
if sys.version_info.minor in [9, 10, 11]:
638+
if sys.version_info.minor in [9, 10, 11, 12, 13]:
639639
return "requirements-elyra.txt"
640640
logger.error(
641641
f"This version of Python '{sys.version_info.major}.{sys.version_info.minor}' "

etc/templates/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"Programming Language :: Python :: 3.9",
4747
"Programming Language :: Python :: 3.10",
4848
"Programming Language :: Python :: 3.11",
49+
"Programming Language :: Python :: 3.12",
50+
"Programming Language :: Python :: 3.13",
4951
),
5052
entry_points={},
5153
)

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ classifiers = [
6868
"Programming Language :: Python :: 3.9",
6969
"Programming Language :: Python :: 3.10",
7070
"Programming Language :: Python :: 3.11",
71+
"Programming Language :: Python :: 3.12",
72+
"Programming Language :: Python :: 3.13",
7173
]
7274
dynamic = ['version']
7375

@@ -282,7 +284,7 @@ import-order-style = "google"
282284
line-length = 120
283285

284286
# Python versions that should be supported by the produced output
285-
target-version = ['py39', 'py310', 'py311']
287+
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
286288

287289
# Migrate configurations from pytest.ini
288290
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)