From 071ae22e890e532013ac48ba963d2e4e359aa737 Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Sun, 30 Jul 2023 09:04:34 +0200 Subject: [PATCH] Include optional dependencies from dtscalibration dependencies * Include optional dependencies from dtscalibration dependencies Use "xarray[parallel,accel]" instead of filling up the dtscalibration dependency list with optional xarray dependencies. * Remove patsy dependency As it only used by statsmodels, and now included in the statsmodels dependencies. * Removed toolz as dependency It is not directly used by our scripts and cannot identify it as an optional dependency of one of our dependencies * Update CHANGELOG.rst --- CHANGELOG.rst | 1 + pyproject.toml | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 91be028f..6dcffe82 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,7 @@ Changed * Standardized parameter names. Reduced the freedom in choosing parameter names and dimension names in favor of simplifying the code. * Requiring netcdf4 >= 1.6.4 +* Optional dependencies of xarray that improve performance are now required by default. * Flox included in requirements to speed up resampling via xarray ([Xarray #5734](https://github.com/pydata/xarray/pull/5734)). Removed diff --git a/pyproject.toml b/pyproject.toml index a87b681e..3650bfb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,19 +52,17 @@ classifiers = [ "Topic :: Utilities", ] dependencies = [ - "numpy", - "xarray", + "numpy>=1.22.4", # xarray: recommended to use >= 1.22 for full quantile method support + "dask", + "pandas", + "xarray[parallel,accel]", "pyyaml>=6.0.1", "xmltodict", "scipy", - "patsy", # a dependency of statsmodels "statsmodels", - "dask", - "toolz", "matplotlib", "netCDF4>=1.6.4", - "flox", - "pandas", + "nc-time-axis>=1.4.1" # optional plot dependency of xarray ] dynamic = ["version"]