This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch bump-python-314 in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 6823d22e6ca6394e28d9173a18d21a490a164363 Author: Jarek Potiuk <[email protected]> AuthorDate: Sat Sep 12 19:47:27 2026 +0200 Keep the Python 3.14 patchlevel pin up to date The version bumper kept its own hard-coded list of Python major/minor versions that stopped at 3.13, so it never looked at 3.14 after 3.14 was added in #63520 and the pinned patchlevel stayed frozen at 3.14.3 while every other version kept moving. Reading the list from global_constants makes the next Python version added benefit automatically. Claude-Session: https://claude.ai/code/session_01DcRW9x8n7Jor7ftsKFxQHD --- dev/breeze/src/airflow_breeze/global_constants.py | 2 +- scripts/ci/prek/upgrade_important_versions.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/global_constants.py b/dev/breeze/src/airflow_breeze/global_constants.py index d4b0fd9186c..bdedb6c44c7 100644 --- a/dev/breeze/src/airflow_breeze/global_constants.py +++ b/dev/breeze/src/airflow_breeze/global_constants.py @@ -905,7 +905,7 @@ ALL_PYTHON_VERSION_TO_PATCHLEVEL_VERSION: dict[str, str] = { "3.11": "3.11.16", "3.12": "3.12.14", "3.13": "3.13.15", - "3.14": "3.14.3", + "3.14": "3.14.7", } # Number of slices for low dep tests diff --git a/scripts/ci/prek/upgrade_important_versions.py b/scripts/ci/prek/upgrade_important_versions.py index 1a135830584..e47849cd608 100755 --- a/scripts/ci/prek/upgrade_important_versions.py +++ b/scripts/ci/prek/upgrade_important_versions.py @@ -46,6 +46,7 @@ from common_prek_utils import ( AIRFLOW_CORE_ROOT_PATH, AIRFLOW_ROOT_PATH, console, + read_allowed_python_major_minor_versions, read_default_python_major_minor_version_for_images, retrieve_gh_token, ) @@ -769,7 +770,10 @@ UPGRADE_PROTOC: bool = get_env_bool("UPGRADE_PROTOC") UPGRADE_OPENAPI_GENERATOR: bool = get_env_bool("UPGRADE_OPENAPI_GENERATOR") UPGRADE_SPHINX_AIRFLOW_THEME: bool = get_env_bool("UPGRADE_SPHINX_AIRFLOW_THEME") -ALL_PYTHON_MAJOR_MINOR_VERSIONS = ["3.10", "3.11", "3.12", "3.13"] +# Read from global_constants.py rather than repeating the list here. A hard-coded copy silently +# stops upgrading the versions it does not know about: 3.14 was added to Airflow in March 2026 and +# its pinned patchlevel was never bumped afterwards, because this list still ended at 3.13. +ALL_PYTHON_MAJOR_MINOR_VERSIONS = read_allowed_python_major_minor_versions() DEFAULT_PROD_IMAGE_PYTHON_VERSION = read_default_python_major_minor_version_for_images()
