This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 845a87d835c Drop version handling during config write as its not a
practical case (#58269)
845a87d835c is described below
commit 845a87d835ccd90131d42bf1975ba989d7a2a6dd
Author: Amogh Desai <[email protected]>
AuthorDate: Fri Nov 14 16:33:51 2025 +0530
Drop version handling during config write as its not a practical case
(#58269)
---
airflow-core/src/airflow/configuration.py | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/airflow-core/src/airflow/configuration.py
b/airflow-core/src/airflow/configuration.py
index f837f78ce59..d7acb1e6dc8 100644
--- a/airflow-core/src/airflow/configuration.py
+++ b/airflow-core/src/airflow/configuration.py
@@ -43,7 +43,6 @@ from re import Pattern
from typing import IO, TYPE_CHECKING, Any, TypeVar
from urllib.parse import urlsplit
-from packaging.version import parse as parse_version
from typing_extensions import overload
from airflow.exceptions import AirflowConfigException
@@ -548,19 +547,11 @@ class AirflowConfigParser(ConfigParser):
Returns tuple of (should_continue, needs_separation) where
needs_separation should be
set if the option needs additional separation to visually separate it
from the next option.
"""
- from airflow import __version__ as airflow_version
-
option_config_description = (
section_config_description.get("options", {}).get(option, {})
if section_config_description
else {}
)
- version_added = option_config_description.get("version_added")
- if version_added is not None and parse_version(version_added) >
parse_version(
- parse_version(airflow_version).base_version
- ):
- # skip if option is going to be added in the future version
- return False, False
description = option_config_description.get("description")
needs_separation = False
if description and include_descriptions: