This is an automated email from the ASF dual-hosted git repository.

potiuk 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 baf54a8b1be Add evaluation extra to google-cloud-aiplatform (#46270)
baf54a8b1be is described below

commit baf54a8b1becd6fb7bd7396229dadd0a6ff589a1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jan 30 08:23:40 2025 +0100

    Add evaluation extra to google-cloud-aiplatform (#46270)
    
    The scikit-learn is an optional dependency of the library from
    google and apparently we are using the `evaluation` optional
    feature of it. Adding the extra should make google provider
    depends on scikit-learn.
    
    Closes: #46258
    
    Co-authored-by: Amogh Desai <[email protected]>
---
 generated/provider_dependencies.json                 | 2 +-
 providers/src/airflow/providers/google/provider.yaml | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/generated/provider_dependencies.json 
b/generated/provider_dependencies.json
index 6b396cfb292..0c983c2a919 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -639,7 +639,7 @@
       "google-api-python-client>=2.0.2",
       "google-auth-httplib2>=0.0.1",
       "google-auth>=2.29.0",
-      "google-cloud-aiplatform>=1.73.0,!=1.79.0",
+      "google-cloud-aiplatform[evaluation]>=1.73.0",
       "google-cloud-alloydb>=0.4.0",
       "google-cloud-automl>=2.12.0",
       "google-cloud-batch>=0.13.0",
diff --git a/providers/src/airflow/providers/google/provider.yaml 
b/providers/src/airflow/providers/google/provider.yaml
index 5d361001ff2..fb8129f183c 100644
--- a/providers/src/airflow/providers/google/provider.yaml
+++ b/providers/src/airflow/providers/google/provider.yaml
@@ -118,9 +118,7 @@ dependencies:
   - google-api-python-client>=2.0.2
   - google-auth>=2.29.0
   - google-auth-httplib2>=0.0.1
-  # Google cloud aiplatform 1.79.0 has a dependency on sklearn which we don't 
use directly.
-  # See https://github.com/apache/airflow/issues/46258
-  - google-cloud-aiplatform>=1.73.0,!=1.79.0
+  - google-cloud-aiplatform[evaluation]>=1.73.0
   - google-cloud-alloydb>=0.4.0
   - google-cloud-automl>=2.12.0
   # Excluded versions contain bug 
https://github.com/apache/airflow/issues/39541 which is resolved in 3.24.0

Reply via email to