From 911740a0372b6b4190d5d35128cb719e6a870779 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 1 Jun 2024 11:50:08 +0200 Subject: [PATCH] Limit yandex provider to avoid mypy errors (#39990) The 0.291.0 version of yandex provider introduced mypy typing that conflicts with the way yandex provider uses it and should be fixed See https://github.com/yandex-cloud/python-sdk/issues/106 (cherry picked from commit 53e6739e67886e3326cfca0face7e9ce116ce4ab) --- airflow/providers/yandex/provider.yaml | 9 +++++++-- generated/provider_dependencies.json | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/airflow/providers/yandex/provider.yaml b/airflow/providers/yandex/provider.yaml index df700127c4aea..b5ae82c11dd0a 100644 --- a/airflow/providers/yandex/provider.yaml +++ b/airflow/providers/yandex/provider.yaml @@ -48,8 +48,13 @@ versions: dependencies: - apache-airflow>=2.6.0 - - yandexcloud>=0.228.0 - - yandex-query-client>=0.1.2 + # The 0.289 and 0.290 versions have broken dataproc support + # See https://github.com/yandex-cloud/python-sdk/issues/103 + # the 0.291.0 version of yandex provider introduced mypy typing + # that conflicts with the way yandex provider uses it and should be fixed + # See https://github.com/yandex-cloud/python-sdk/issues/106 + - yandexcloud>=0.278.0,!=0.289.0,!=0.290.0,<0.292.0 + - yandex-query-client>=0.1.4 integrations: - integration-name: Yandex.Cloud diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index 2da9bdee7cbc2..2a6b6ac558cd8 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -1180,8 +1180,8 @@ "yandex": { "deps": [ "apache-airflow>=2.6.0", - "yandex-query-client>=0.1.2", - "yandexcloud>=0.228.0" + "yandex-query-client>=0.1.4", + "yandexcloud>=0.278.0,!=0.289.0,!=0.290.0,<0.292.0" ], "devel-deps": [], "cross-providers-deps": [],