@@ -71,10 +71,17 @@ def _importorskip(
71
71
message = "'cgi' is deprecated and slated for removal in Python 3.13" ,
72
72
category = DeprecationWarning ,
73
73
)
74
-
75
74
has_pydap , requires_pydap = _importorskip ("pydap.client" )
76
75
has_netCDF4 , requires_netCDF4 = _importorskip ("netCDF4" )
77
- has_h5netcdf , requires_h5netcdf = _importorskip ("h5netcdf" )
76
+ with warnings .catch_warnings ():
77
+ # see https://github.com/pydata/xarray/issues/8537
78
+ warnings .filterwarnings (
79
+ "ignore" ,
80
+ message = "h5py is running against HDF5 1.14.3" ,
81
+ category = UserWarning ,
82
+ )
83
+
84
+ has_h5netcdf , requires_h5netcdf = _importorskip ("h5netcdf" )
78
85
has_pynio , requires_pynio = _importorskip ("Nio" )
79
86
has_cftime , requires_cftime = _importorskip ("cftime" )
80
87
has_dask , requires_dask = _importorskip ("dask" )
@@ -84,7 +91,14 @@ def _importorskip(
84
91
has_fsspec , requires_fsspec = _importorskip ("fsspec" )
85
92
has_iris , requires_iris = _importorskip ("iris" )
86
93
has_numbagg , requires_numbagg = _importorskip ("numbagg" , "0.4.0" )
87
- has_seaborn , requires_seaborn = _importorskip ("seaborn" )
94
+ with warnings .catch_warnings ():
95
+ warnings .filterwarnings (
96
+ "ignore" ,
97
+ message = "is_categorical_dtype is deprecated and will be removed in a future version." ,
98
+ category = DeprecationWarning ,
99
+ )
100
+ # seaborn uses the deprecated `pandas.is_categorical_dtype`
101
+ has_seaborn , requires_seaborn = _importorskip ("seaborn" )
88
102
has_sparse , requires_sparse = _importorskip ("sparse" )
89
103
has_cupy , requires_cupy = _importorskip ("cupy" )
90
104
has_cartopy , requires_cartopy = _importorskip ("cartopy" )
0 commit comments