From 0877848d07e64268e85da132ad77213544e24cde Mon Sep 17 00:00:00 2001 From: Maik Riechert Date: Thu, 28 Oct 2021 23:47:55 +0200 Subject: [PATCH] pin transitive dependencies (cftime) (#222) --- gis4wrf/bootstrap.py | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/gis4wrf/bootstrap.py b/gis4wrf/bootstrap.py index 5c3fefa..bba7043 100644 --- a/gis4wrf/bootstrap.py +++ b/gis4wrf/bootstrap.py @@ -40,7 +40,6 @@ DEPS = [ # Direct dependencies. - #Dependency('xarray', install='0.10.0', min=None), Dependency('f90nml', install='1.0.2', min=None), # Indirect dependencies. @@ -52,9 +51,6 @@ # bugs where the latest version is binary incompatible with older versions of numpy. # And since we can't update numpy ourselves, we need to use older versions of those indirect # dependencies which are built against older versions of numpy. - - # https://github.com/pandas-dev/pandas/issues/18967 - #Dependency('pandas', install='0.20.3', min=None) # for xarray ] # For some packages we need to use different versions depending on the Python version used. if PY_MAJORMINOR == ('3', '6'): @@ -63,20 +59,41 @@ Dependency('netCDF4', install='1.2.9', min='None'), + # dependency of netCDF4 + Dependency('cftime', + install='1.5.1', + min='None'), ] -# QGIS 3.16 elif PY_MAJORMINOR == ('3', '7'): DEPS += [ Dependency('netCDF4', install='1.4.2', min='None'), + # dependency of netCDF4 + Dependency('cftime', + install='1.5.1', + min='None'), ] -# QGIS 3.18+ elif PY_MAJORMINOR == ('3', '9'): DEPS += [ Dependency('netCDF4', install='1.5.7', min='None'), + # dependency of netCDF4 + Dependency('cftime', + install='1.5.1', + min='None'), + ] +# best effort +else: + DEPS += [ + Dependency('netCDF4', + install='1.*', + min='None'), + # dependency of netCDF4 + Dependency('cftime', + install='1.*', + min='None'), ] # Use a custom folder for the packages to avoid polluting the per-user site-packages.