Skip to content

Add support to Python 3.12 and 3.13 #3311

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

Merged
merged 1 commit into from
May 16, 2025
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
env:
FORCE_COLOR: true
NODE_VERSION: 22
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.13
NODE_OPTIONS: '--max_old_space_size=4096'

jobs:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Validate image environment
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CONTAINER_OUTPUT_OPTION?=--output=type=docker
# Python execs
PYTHON?=python3
PYTHON_PIP=$(PYTHON) -m pip
PYTHON_VERSION?=3.11
PYTHON_VERSION?=3.13

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

Expand Down
2 changes: 1 addition & 1 deletion elyra/airflow/bootstrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
@classmethod
def determine_elyra_requirements(cls) -> Any:
if sys.version_info.major == 3:
if sys.version_info.minor in [9, 10, 11]:
if sys.version_info.minor in [9, 10, 11, 12, 13]:

Check warning on line 476 in elyra/airflow/bootstrapper.py

View check run for this annotation

Codecov / codecov/patch

elyra/airflow/bootstrapper.py#L476

Added line #L476 was not covered by tests
return "requirements-elyra.txt"
logger.error(
f"This version of Python '{sys.version_info.major}.{sys.version_info.minor}' "
Expand Down
2 changes: 1 addition & 1 deletion elyra/kfp/bootstrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def package_install(cls, user_volume_path) -> None:
@classmethod
def determine_elyra_requirements(cls) -> Any:
if sys.version_info.major == 3:
if sys.version_info.minor in [9, 10, 11]:
if sys.version_info.minor in [9, 10, 11, 12, 13]:
return "requirements-elyra.txt"
logger.error(
f"This version of Python '{sys.version_info.major}.{sys.version_info.minor}' "
Expand Down
2 changes: 2 additions & 0 deletions etc/templates/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
),
entry_points={},
)
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ['version']

Expand Down Expand Up @@ -280,7 +282,7 @@ import-order-style = "google"
line-length = 120

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

# Migrate configurations from pytest.ini
[tool.pytest.ini_options]
Expand Down
Loading