From 8d9126e3ec90deaa0d49206764312f083dfc81f8 Mon Sep 17 00:00:00 2001 From: Elad Kalif <45845474+eladkal@users.noreply.github.com> Date: Tue, 21 May 2024 18:49:53 +0300 Subject: [PATCH] Pin requests due to incompatibility with docker-py (#39740) * Pin requests due to incompatibility with docker-py * fix (cherry picked from commit 1da7f1f4339241c0a0aa59e158c4cd480c1b2ddf) --- airflow/providers/docker/provider.yaml | 4 ++++ generated/provider_dependencies.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/airflow/providers/docker/provider.yaml b/airflow/providers/docker/provider.yaml index bb6447ffd4862..b22d97b795e04 100644 --- a/airflow/providers/docker/provider.yaml +++ b/airflow/providers/docker/provider.yaml @@ -67,6 +67,10 @@ dependencies: - apache-airflow>=2.6.0 - docker>=6 - python-dotenv>=0.21.0 + # requests 2.32.0 has an incompatibility with python lib docker + # https://github.com/psf/requests/issues/6707 and https://github.com/docker/docker-py/issues/3256 + # once resolved remove this dependency + - requests>=2.27.0,<2.32.0 integrations: - integration-name: Docker diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index a81cd93a8f248..3091cc9c6865b 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -432,7 +432,8 @@ "deps": [ "apache-airflow>=2.6.0", "docker>=6", - "python-dotenv>=0.21.0" + "python-dotenv>=0.21.0", + "requests>=2.27.0,<2.32.0" ], "devel-deps": [], "cross-providers-deps": [],