Skip to content

Commit 5b3113d

Browse files
committed
Un-exclude the google provider from py3.14
1 parent d603e6c commit 5b3113d

7 files changed

Lines changed: 17 additions & 8 deletions

File tree

dev/breeze/tests/test_selective_checks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ def test_excluded_providers():
13851385
"3.14": [
13861386
"amazon", # Depends on lxml<6
13871387
"apache.cassandra", # Enable when the next release after 3.29.3 is available
1388-
"google", # Depends on ray, which does not yet support python 3.14 (due to pydantic v1)
13891388
],
13901389
}
13911390
),

providers/google/docs/changelog.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
Changelog
2828
---------
2929

30+
.. warning::
31+
Ray is not yet supported on Python 3.14, so ``RayJobHook`` cannot be used with Python 3.14.
32+
3033
.. warning::
3134
Deprecated classes, parameters and features have been removed from the Google provider package.
3235
The following breaking changes were introduced:
@@ -192,7 +195,8 @@ Doc-only
192195
......
193196

194197
.. warning::
195-
We have identified the following regressions for this version.
198+
We have identified the following regressions for this version:
199+
196200
- The return value of the ``GenAIGeminiCreateBatchJobOperator`` and ``GenAIGeminiGetBatchJobOperator`` were incompatible with Airflow 2. The issues fixed in the following PRs #61253 and #61842.
197201
- The ``transport`` parameter broke the deferrable mode for ``CloudRunExecuteJobOperator``. The issue fixed in #61546.
198202

providers/google/provider.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ versions:
123123
- 2.0.0
124124
- 1.0.0
125125

126-
excluded-python-versions:
127-
- "3.14"
128-
129126
integrations:
130127
- integration-name: Google Analytics (GA4)
131128
external-doc-url: https://analytics.google.com/

providers/google/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ classifiers = [
4949
"Programming Language :: Python :: 3.11",
5050
"Programming Language :: Python :: 3.12",
5151
"Programming Language :: Python :: 3.13",
52+
"Programming Language :: Python :: 3.14",
5253
"Topic :: System :: Monitoring",
5354
]
54-
requires-python = ">=3.10,!=3.14.*"
55+
requires-python = ">=3.10"
5556

5657
# The dependencies should be modified in place in the generated file.
5758
# Any change in the dependencies is preserved when the file is regenerated

providers/google/src/airflow/providers/google/cloud/hooks/ray.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@
1919

2020
from __future__ import annotations
2121

22+
import sys
2223
from typing import TYPE_CHECKING, Any
2324
from urllib.parse import urlparse
2425

26+
# Remove the below after https://github.com/ray-project/ray/issues/56434 is resolved
27+
if sys.version_info >= (3, 14):
28+
raise ImportError("Ray is not supported on Python 3.14 yet")
29+
2530
from ray.job_submission import JobSubmissionClient
2631

2732
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook

providers/google/tests/unit/google/cloud/hooks/test_ray.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919

2020
from unittest import mock
2121

22-
from airflow.providers.google.cloud.hooks.ray import RayJobHook
22+
import pytest
2323

2424
from unit.google.cloud.utils.base_gcp_mock import (
2525
mock_base_gcp_hook_default_project_id,
2626
)
2727

28+
# Remove the below workaround once https://github.com/ray-project/ray/issues/56434 is resolved
29+
ray = pytest.importorskip("airflow.providers.google.cloud.hooks.ray")
30+
from airflow.providers.google.cloud.hooks.ray import RayJobHook # noqa: E402
31+
2832
TEST_GCP_CONN_ID: str = "test-gcp-conn-id"
2933
TEST_CLUSTER_NAME: str = "test-cluster-name"
3034

scripts/tests/ci/prek/test_check_excluded_provider_markers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
EXCLUDED = {
2323
"apache-airflow-providers-amazon": ["3.14"],
24-
"apache-airflow-providers-google": ["3.14"],
2524
}
2625

2726

0 commit comments

Comments
 (0)