Skip to content

Commit 544e132

Browse files
dirraopotiuk
authored andcommitted
Removed deprectaed extras dict from hatch build
1 parent 4d8d6a3 commit 544e132

1 file changed

Lines changed: 1 addition & 58 deletions

File tree

hatch_build.py

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -341,62 +341,6 @@
341341
],
342342
}
343343

344-
DEPRECATED_EXTRAS: dict[str, list[str]] = {
345-
########################################################################################################
346-
# The whole section can be removed in Airflow 3.0 as those old aliases are deprecated in 2.* series
347-
########################################################################################################
348-
"atlas": [
349-
"apache-airflow[apache-atlas]",
350-
],
351-
"aws": [
352-
"apache-airflow[amazon]",
353-
],
354-
"azure": [
355-
"apache-airflow[microsoft-azure]",
356-
],
357-
"cassandra": [
358-
"apache-airflow[apache-cassandra]",
359-
],
360-
# Empty alias extra just for backward compatibility with Airflow 1.10
361-
"crypto": [],
362-
"druid": [
363-
"apache-airflow[apache-druid]",
364-
],
365-
"gcp": [
366-
"apache-airflow[google]",
367-
],
368-
"gcp-api": [
369-
"apache-airflow[google]",
370-
],
371-
"hdfs": [
372-
"apache-airflow[apache-hdfs]",
373-
],
374-
"hive": [
375-
"apache-airflow[apache-hive]",
376-
],
377-
"kubernetes": [
378-
"apache-airflow[cncf-kubernetes]",
379-
],
380-
"mssql": [
381-
"apache-airflow[microsoft-mssql]",
382-
],
383-
"pinot": [
384-
"apache-airflow[apache-pinot]",
385-
],
386-
"s3": [
387-
"apache-airflow[amazon]",
388-
],
389-
"spark": [
390-
"apache-airflow[apache-spark]",
391-
],
392-
"webhdfs": [
393-
"apache-airflow[apache-webhdfs]",
394-
],
395-
"winrm": [
396-
"apache-airflow[microsoft-winrm]",
397-
],
398-
}
399-
400344
# When you remove a dependency from the list, you should also make sure to add the dependency to be removed
401345
# in the scripts/docker/install_airflow_dependencies_from_branch_tip.sh script DEPENDENCIES_TO_REMOVE
402346
# in order to make sure the dependency is not installed in the CI image build process from the main
@@ -509,7 +453,6 @@
509453
(DOC_EXTRAS, "Doc extras"),
510454
(DEVEL_EXTRAS, "Devel extras"),
511455
(BUNDLE_EXTRAS, "Bundle extras"),
512-
(DEPRECATED_EXTRAS, "Deprecated extras"),
513456
]
514457

515458
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:
933876
for extra, deps in dict.items():
934877
self.all_devel_extras.add(extra)
935878
self._add_devel_ci_dependencies(deps, python_exclusion="")
936-
if dict not in [DEPRECATED_EXTRAS, DEVEL_EXTRAS, DOC_EXTRAS]:
879+
if dict not in [DEVEL_EXTRAS, DOC_EXTRAS]:
937880
# do not add deprecated extras to "all" extras
938881
self.all_non_devel_extras.add(extra)
939882
if version == "standard":

0 commit comments

Comments
 (0)