Skip to content

Commit 6e70de6

Browse files
committed
Suspend apache-beam-provider
1 parent 99481f3 commit 6e70de6

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ packages = []
105105
"amazon" = [
106106
"apache-airflow-providers-amazon>=9.0.0"
107107
]
108-
"apache.beam" = [
109-
"apache-airflow-providers-apache-beam>=5.8.1; python_version !=\"3.13\""
110-
]
111108
"apache.cassandra" = [
112109
"apache-airflow-providers-apache-cassandra>=3.7.0"
113110
]
@@ -399,7 +396,6 @@ packages = []
399396
"apache-airflow-providers-airbyte>=5.0.0",
400397
"apache-airflow-providers-alibaba>=3.0.0",
401398
"apache-airflow-providers-amazon>=9.0.0",
402-
"apache-airflow-providers-apache-beam>=5.8.1; python_version !=\"3.13\"",
403399
"apache-airflow-providers-apache-cassandra>=3.7.0",
404400
"apache-airflow-providers-apache-drill>=2.8.1",
405401
"apache-airflow-providers-apache-druid>=3.12.0",
@@ -1056,8 +1052,6 @@ mypy_path = [
10561052
"$MYPY_CONFIG_FILE_DIR/providers/alibaba/tests",
10571053
"$MYPY_CONFIG_FILE_DIR/providers/amazon/src",
10581054
"$MYPY_CONFIG_FILE_DIR/providers/amazon/tests",
1059-
"$MYPY_CONFIG_FILE_DIR/providers/apache/beam/src",
1060-
"$MYPY_CONFIG_FILE_DIR/providers/apache/beam/tests",
10611055
"$MYPY_CONFIG_FILE_DIR/providers/apache/cassandra/src",
10621056
"$MYPY_CONFIG_FILE_DIR/providers/apache/cassandra/tests",
10631057
"$MYPY_CONFIG_FILE_DIR/providers/apache/drill/src",
@@ -1378,7 +1372,6 @@ apache-airflow-shared-timezones = { workspace = true }
13781372
apache-airflow-providers-airbyte = { workspace = true }
13791373
apache-airflow-providers-alibaba = { workspace = true }
13801374
apache-airflow-providers-amazon = { workspace = true }
1381-
apache-airflow-providers-apache-beam = { workspace = true }
13821375
apache-airflow-providers-apache-cassandra = { workspace = true }
13831376
apache-airflow-providers-apache-drill = { workspace = true }
13841377
apache-airflow-providers-apache-druid = { workspace = true }
@@ -1508,7 +1501,6 @@ members = [
15081501
"providers/airbyte",
15091502
"providers/alibaba",
15101503
"providers/amazon",
1511-
"providers/apache/beam",
15121504
"providers/apache/cassandra",
15131505
"providers/apache/drill",
15141506
"providers/apache/druid",

scripts/ci/prek/common_prek_utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,20 @@ def get_provider_base_dir_from_path(file_path: Path) -> Path | None:
345345
return None
346346

347347

348-
def get_all_provider_ids() -> list[str]:
348+
def get_all_provider_ids(exclude_suspended_providers: bool = False) -> list[str]:
349349
"""
350350
Get all providers from the new provider structure
351351
"""
352352
all_provider_ids = []
353353
for provider_file in AIRFLOW_PROVIDERS_ROOT_PATH.rglob("provider.yaml"):
354354
if provider_file.is_relative_to(AIRFLOW_PROVIDERS_ROOT_PATH / "src"):
355355
continue
356+
if exclude_suspended_providers:
357+
import yaml
358+
359+
provider_info = yaml.safe_load(provider_file.read_text())
360+
if provider_info.get("state") == "suspended":
361+
continue
356362
provider_id = get_provider_id_from_path(provider_file)
357363
if provider_id:
358364
all_provider_ids.append(provider_id)

scripts/ci/prek/update_airflow_pyproject_toml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# "packaging>=25",
2323
# "rich>=13.6.0",
2424
# "tomli>=2.0.1",
25+
# "pyyaml",
2526
# ]
2627
# ///
2728
"""
@@ -235,7 +236,7 @@ def get_python_exclusion(provider_dependencies: dict[str, Any]) -> str:
235236
all_optional_dependencies.append(f'"{optional}" = [\n "apache-airflow-core[{optional}]"\n]\n')
236237
optional_airflow_task_sdk_dependencies = get_optional_dependencies(AIRFLOW_TASK_SDK_PYPROJECT_TOML_FILE)
237238
all_optional_dependencies.append('"all-task-sdk" = [\n "apache-airflow-task-sdk[all]"\n]\n')
238-
all_providers = sorted(get_all_provider_ids())
239+
all_providers = sorted(get_all_provider_ids(exclude_suspended_providers=True))
239240
all_provider_lines = []
240241
for provider_id in all_providers:
241242
distribution_name = provider_distribution_name(provider_id)

0 commit comments

Comments
 (0)