This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-3-test by this push:
new d47428735f1 Keep the Python 3.14 patchlevel pin up to date (#73039)
(#73041)
d47428735f1 is described below
commit d47428735f1c777c2ab2df86d1202c86c9e43a45
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Sep 13 00:43:20 2026 +0630
Keep the Python 3.14 patchlevel pin up to date (#73039) (#73041)
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
(cherry picked from commit 7fa3c6b933e72c90e5e3ae33f66dbb60e66d0fb4)
---
dev/breeze/src/airflow_breeze/global_constants.py | 10 +++++-----
scripts/ci/prek/upgrade_important_versions.py | 6 +++++-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/global_constants.py
b/dev/breeze/src/airflow_breeze/global_constants.py
index 7f0de4353bc..13c37d9e019 100644
--- a/dev/breeze/src/airflow_breeze/global_constants.py
+++ b/dev/breeze/src/airflow_breeze/global_constants.py
@@ -860,11 +860,11 @@ PROVIDERS_COMPATIBILITY_TESTS_MATRIX: list[dict[str, str
| list[str]]] = [
]
ALL_PYTHON_VERSION_TO_PATCHLEVEL_VERSION: dict[str, str] = {
- "3.10": "3.10.20",
- "3.11": "3.11.15",
- "3.12": "3.12.13",
- "3.13": "3.13.14",
- "3.14": "3.14.3",
+ "3.10": "3.10.21",
+ "3.11": "3.11.16",
+ "3.12": "3.12.14",
+ "3.13": "3.13.15",
+ "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()