diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-xarray/package.py | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-xarray/package.py b/var/spack/repos/builtin/packages/py-xarray/package.py index e8cdc8dec6..598fa653ff 100644 --- a/var/spack/repos/builtin/packages/py-xarray/package.py +++ b/var/spack/repos/builtin/packages/py-xarray/package.py @@ -25,6 +25,7 @@ class PyXarray(PythonPackage): license("Apache-2.0") + version("2024.7.0", sha256="4cae512d121a8522d41e66d942fb06c526bc1fd32c2c181d5fe62fe65b671638") version("2023.7.0", sha256="dace2fdbf1b7ff185d9c1226a24bf83c2ae52f3253dbfe80e17d1162600d055c") version("2022.3.0", sha256="398344bf7d170477aaceff70210e11ebd69af6b156fe13978054d25c48729440") version("0.18.2", sha256="5d2e72a228286fcf60f66e16876bd27629a1a70bf64822c565f16515c4d10284") @@ -38,6 +39,7 @@ class PyXarray(PythonPackage): variant("io", default=False, description="Build io backends") variant("parallel", default=False, description="Build parallel backend") + variant("viz", default=False, when="@2024.7.0:", description="Buid viz backends") # pyproject.toml depends_on("py-setuptools", when="@:0.15", type="build") @@ -64,6 +66,7 @@ class PyXarray(PythonPackage): depends_on("py-numpy@1.17:", when="@0.18:", type=("build", "run")) depends_on("py-numpy@1.18:", when="@0.20:", type=("build", "run")) depends_on("py-numpy@1.21:", when="@2023.7.0:", type=("build", "run")) + depends_on("py-numpy@1.23:", when="@2024.7.0:", type=("build", "run")) depends_on("py-pandas@0.15.0:", when="@0.9.1", type=("build", "run")) depends_on("py-pandas@0.19.2:", when="@0.11:0.13", type=("build", "run")) @@ -72,9 +75,11 @@ class PyXarray(PythonPackage): depends_on("py-pandas@1:", when="@0.18:", type=("build", "run")) depends_on("py-pandas@1.1:", when="@0.20:", type=("build", "run")) depends_on("py-pandas@1.4:", when="@2023.7.0:", type=("build", "run")) + depends_on("py-pandas@2.0:", when="@2024.7.0:", type=("build", "run")) depends_on("py-packaging@20:", when="@0.21:", type=("build", "run")) depends_on("py-packaging@21.3:", when="@2023.7.0:", type=("build", "run")) + depends_on("py-packaging@23.1:", when="@2024.7.0:", type=("build", "run")) depends_on("py-netcdf4", when="+io", type=("build", "run")) depends_on("py-h5netcdf", when="+io", type=("build", "run")) @@ -86,8 +91,22 @@ class PyXarray(PythonPackage): depends_on("py-rasterio", when="@:2022.3.0 +io", type=("build", "run")) depends_on("py-cfgrib", when="@:2022.3.0 +io", type=("build", "run")) depends_on("py-pooch", when="+io", type=("build", "run")) + + depends_on( + "py-dask@:2021 +array+dataframe+distributed+diagnostics+delayed", + when="@:2022.05.0 +parallel", + type=("build", "run"), + ) + + # xarray uses inline_array starting in v2022.06.0 which only exists + # since dask 2021.01.0 depends_on( - "py-dask+array+dataframe+distributed+diagnostics+delayed", - when="+parallel", + # +delayed is :2021.3.0 + "py-dask@2022: +array+dataframe+distributed+diagnostics", + when="@2022.06.0: +parallel", type=("build", "run"), ) + + depends_on("py-matplotlib", when="@2024.7.0: +viz", type=("build", "run")) + depends_on("py-seaborn", when="@2024.7.0: +viz", type=("build", "run")) + depends_on("py-nc-time-axis", when="@2024.7.0: +viz", type=("build", "run")) |