From 14a537f731dd8317c00849452cf368450963eb3c Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 12 May 2023 20:23:49 +0200 Subject: [PATCH] Upper bind dask until they solve a side effect in their test suite (#31259) Dask 2023.5.0 introduced a peculiar side-effect in their tests that makes our OTHER tests break in a very strange way. Issue here: https://github.com/dask/dask/issues/10279 Until the problem is fixed we should limit dask (cherry picked from commit 139575448716fb1ebeafb736e1c9cc30800ef0b6) --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8897ad890b55e..0e502f284439b 100644 --- a/setup.py +++ b/setup.py @@ -240,9 +240,11 @@ def write_version(filename: str = str(AIRFLOW_SOURCES_ROOT / "airflow" / "git_ve # Dask support is limited, we need Dask team to upgrade support for dask if we were to continue # Supporting it in the future "cloudpickle>=1.4.1", + # Dask and distributed in version 2023.5.0 break our tests for Python > 3.7 + # The upper limit can be removed when https://github.com/dask/dask/issues/10279 is fixed # Dask in version 2022.10.1 removed `bokeh` support and we should avoid installing it - "dask>=2.9.0,!=2022.10.1", - "distributed>=2.11.1", + "dask>=2.9.0,!=2022.10.1,<2023.5.0", + "distributed>=2.11.1,<2023.5.0", ] deprecated_api = [ "requests>=2.26.0",