From 905b6b40309d1f4aac3d7e37a26c784d2815ac40 Mon Sep 17 00:00:00 2001 From: rjzamora Date: Mon, 12 Feb 2024 09:36:31 -0800 Subject: [PATCH 1/3] filter dask.dataframe deprecation for now --- dask_cuda/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dask_cuda/__init__.py b/dask_cuda/__init__.py index dbbb1f7fb..0a20d2b4a 100644 --- a/dask_cuda/__init__.py +++ b/dask_cuda/__init__.py @@ -1,8 +1,15 @@ import sys +import warnings if sys.platform != "linux": raise ImportError("Only Linux is supported by Dask-CUDA at this time") +# This warning is not specific to dask-cuda +# See: https://github.com/rapidsai/dask-cuda/issues/1311 +warnings.filterwarnings( + "ignore", + message="The current Dask DataFrame implementation is deprecated.", +) import dask import dask.utils From 39c0a1143dee26523c4e567668e20f9d8f8900c3 Mon Sep 17 00:00:00 2001 From: rjzamora Date: Mon, 12 Feb 2024 09:37:32 -0800 Subject: [PATCH 2/3] tweak comment --- dask_cuda/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dask_cuda/__init__.py b/dask_cuda/__init__.py index 0a20d2b4a..a8f8f5d60 100644 --- a/dask_cuda/__init__.py +++ b/dask_cuda/__init__.py @@ -4,7 +4,8 @@ if sys.platform != "linux": raise ImportError("Only Linux is supported by Dask-CUDA at this time") -# This warning is not specific to dask-cuda +# This warning must be filtered until dask-expr support +# is enabled in both dask-cudf and dask-cuda. # See: https://github.com/rapidsai/dask-cuda/issues/1311 warnings.filterwarnings( "ignore", From 7c6561243d1fafe53f62a685bb1f4ea829a4b68a Mon Sep 17 00:00:00 2001 From: rjzamora Date: Mon, 12 Feb 2024 11:41:28 -0800 Subject: [PATCH 3/3] filter pytests only --- dask_cuda/__init__.py | 9 --------- pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/dask_cuda/__init__.py b/dask_cuda/__init__.py index a8f8f5d60..30f987ac4 100644 --- a/dask_cuda/__init__.py +++ b/dask_cuda/__init__.py @@ -1,17 +1,8 @@ import sys -import warnings if sys.platform != "linux": raise ImportError("Only Linux is supported by Dask-CUDA at this time") -# This warning must be filtered until dask-expr support -# is enabled in both dask-cudf and dask-cuda. -# See: https://github.com/rapidsai/dask-cuda/issues/1311 -warnings.filterwarnings( - "ignore", - message="The current Dask DataFrame implementation is deprecated.", -) - import dask import dask.utils import dask.dataframe.core diff --git a/pyproject.toml b/pyproject.toml index b332307f9..27e31ae00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,6 +123,10 @@ filterwarnings = [ "error::FutureWarning", # remove after https://github.com/rapidsai/dask-cuda/issues/1087 is closed "ignore:There is no current event loop:DeprecationWarning:tornado", + # This warning must be filtered until dask-expr support + # is enabled in both dask-cudf and dask-cuda. + # See: https://github.com/rapidsai/dask-cuda/issues/1311 + "ignore:Dask DataFrame implementation is deprecated:DeprecationWarning", ] [tool.setuptools]