From 544e13245a48181dcbc129a89d2ebbf09f9245d9 Mon Sep 17 00:00:00 2001 From: dirrao Date: Wed, 2 Oct 2024 09:58:32 +0530 Subject: [PATCH 1/2] Removed deprectaed extras dict from hatch build --- hatch_build.py | 59 +------------------------------------------------- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/hatch_build.py b/hatch_build.py index 765e71ff98962..5309e9d1b08cb 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -341,62 +341,6 @@ ], } -DEPRECATED_EXTRAS: dict[str, list[str]] = { - ######################################################################################################## - # The whole section can be removed in Airflow 3.0 as those old aliases are deprecated in 2.* series - ######################################################################################################## - "atlas": [ - "apache-airflow[apache-atlas]", - ], - "aws": [ - "apache-airflow[amazon]", - ], - "azure": [ - "apache-airflow[microsoft-azure]", - ], - "cassandra": [ - "apache-airflow[apache-cassandra]", - ], - # Empty alias extra just for backward compatibility with Airflow 1.10 - "crypto": [], - "druid": [ - "apache-airflow[apache-druid]", - ], - "gcp": [ - "apache-airflow[google]", - ], - "gcp-api": [ - "apache-airflow[google]", - ], - "hdfs": [ - "apache-airflow[apache-hdfs]", - ], - "hive": [ - "apache-airflow[apache-hive]", - ], - "kubernetes": [ - "apache-airflow[cncf-kubernetes]", - ], - "mssql": [ - "apache-airflow[microsoft-mssql]", - ], - "pinot": [ - "apache-airflow[apache-pinot]", - ], - "s3": [ - "apache-airflow[amazon]", - ], - "spark": [ - "apache-airflow[apache-spark]", - ], - "webhdfs": [ - "apache-airflow[apache-webhdfs]", - ], - "winrm": [ - "apache-airflow[microsoft-winrm]", - ], -} - # When you remove a dependency from the list, you should also make sure to add the dependency to be removed # in the scripts/docker/install_airflow_dependencies_from_branch_tip.sh script DEPENDENCIES_TO_REMOVE # in order to make sure the dependency is not installed in the CI image build process from the main @@ -509,7 +453,6 @@ (DOC_EXTRAS, "Doc extras"), (DEVEL_EXTRAS, "Devel extras"), (BUNDLE_EXTRAS, "Bundle extras"), - (DEPRECATED_EXTRAS, "Deprecated extras"), ] ALL_GENERATED_BUNDLE_EXTRAS = ["all", "all-core", "devel-all", "devel-ci"] @@ -933,7 +876,7 @@ def _process_all_built_in_extras(self, version: str) -> None: for extra, deps in dict.items(): self.all_devel_extras.add(extra) self._add_devel_ci_dependencies(deps, python_exclusion="") - if dict not in [DEPRECATED_EXTRAS, DEVEL_EXTRAS, DOC_EXTRAS]: + if dict not in [DEVEL_EXTRAS, DOC_EXTRAS]: # do not add deprecated extras to "all" extras self.all_non_devel_extras.add(extra) if version == "standard": From 8be444532f5b188b49493996e772f1988bf134f1 Mon Sep 17 00:00:00 2001 From: dirrao Date: Sat, 5 Oct 2024 08:04:36 +0530 Subject: [PATCH 2/2] news fragment added --- newsfragments/42647.significant.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 newsfragments/42647.significant.rst diff --git a/newsfragments/42647.significant.rst b/newsfragments/42647.significant.rst new file mode 100644 index 0000000000000..c4d53d431c91a --- /dev/null +++ b/newsfragments/42647.significant.rst @@ -0,0 +1,20 @@ +Removed deprecated aliases support for providers. + + +* Removed deprecated ``atlas`` alias support. Please use ``apache-atlas`` instead. +* Removed deprecated ``aws`` alias support. Please use ``amazon`` instead. +* Removed deprecated ``azure`` alias support. Please use ``microsoft-azure`` instead. +* Removed deprecated ``cassandra`` alias support. Please use ``apache-cassandra`` instead. +* Removed deprecated ``crypto`` alias support. +* Removed deprecated ``druid`` alias support. Please use ``apache-druid`` instead. +* Removed deprecated ``gcp`` alias support. Please use ``google`` instead. +* Removed deprecated ``gcp-api`` alias support. Please use ``google`` instead. +* Removed deprecated ``hdfs`` alias support. Please use ``apache-hdfs`` instead. +* Removed deprecated ``hive`` alias support. Please use ``apache-hive`` instead. +* Removed deprecated ``kubernetes`` alias support. Please use ``cncf-kubernetes`` instead. +* Removed deprecated ``mssql`` alias support. Please use ``microsoft-mssql`` instead. +* Removed deprecated ``pinot`` alias support. Please use ``apache-pinot`` instead. +* Removed deprecated ``s3`` alias support. Please use ``amazon`` instead. +* Removed deprecated ``spark`` alias support. Please use ``apache-spark`` instead. +* Removed deprecated ``webhdfs`` alias support. Please use ``apache-webhdfs`` instead. +* Removed deprecated ``winrm`` alias support. Please use ``microsoft-winrm`` instead.