py-xarray
: Update and ensure dask compatibility (#45537)
* Add 2024.7 and new +viz variant as per pyproject.toml * Ensure dask/xarray versions are compatible
This commit is contained in:
parent
e110e3c3af
commit
5736d1e206
@ -25,6 +25,7 @@ class PyXarray(PythonPackage):
|
|||||||
|
|
||||||
license("Apache-2.0")
|
license("Apache-2.0")
|
||||||
|
|
||||||
|
version("2024.7.0", sha256="4cae512d121a8522d41e66d942fb06c526bc1fd32c2c181d5fe62fe65b671638")
|
||||||
version("2023.7.0", sha256="dace2fdbf1b7ff185d9c1226a24bf83c2ae52f3253dbfe80e17d1162600d055c")
|
version("2023.7.0", sha256="dace2fdbf1b7ff185d9c1226a24bf83c2ae52f3253dbfe80e17d1162600d055c")
|
||||||
version("2022.3.0", sha256="398344bf7d170477aaceff70210e11ebd69af6b156fe13978054d25c48729440")
|
version("2022.3.0", sha256="398344bf7d170477aaceff70210e11ebd69af6b156fe13978054d25c48729440")
|
||||||
version("0.18.2", sha256="5d2e72a228286fcf60f66e16876bd27629a1a70bf64822c565f16515c4d10284")
|
version("0.18.2", sha256="5d2e72a228286fcf60f66e16876bd27629a1a70bf64822c565f16515c4d10284")
|
||||||
@ -38,6 +39,7 @@ class PyXarray(PythonPackage):
|
|||||||
|
|
||||||
variant("io", default=False, description="Build io backends")
|
variant("io", default=False, description="Build io backends")
|
||||||
variant("parallel", default=False, description="Build parallel backend")
|
variant("parallel", default=False, description="Build parallel backend")
|
||||||
|
variant("viz", default=False, when="@2024.7.0:", description="Buid viz backends")
|
||||||
|
|
||||||
# pyproject.toml
|
# pyproject.toml
|
||||||
depends_on("py-setuptools", when="@:0.15", type="build")
|
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.17:", when="@0.18:", type=("build", "run"))
|
||||||
depends_on("py-numpy@1.18:", when="@0.20:", 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.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.15.0:", when="@0.9.1", type=("build", "run"))
|
||||||
depends_on("py-pandas@0.19.2:", when="@0.11:0.13", 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:", when="@0.18:", type=("build", "run"))
|
||||||
depends_on("py-pandas@1.1:", when="@0.20:", 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@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@20:", when="@0.21:", type=("build", "run"))
|
||||||
depends_on("py-packaging@21.3:", when="@2023.7.0:", 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-netcdf4", when="+io", type=("build", "run"))
|
||||||
depends_on("py-h5netcdf", 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-rasterio", when="@:2022.3.0 +io", type=("build", "run"))
|
||||||
depends_on("py-cfgrib", 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-pooch", when="+io", type=("build", "run"))
|
||||||
|
|
||||||
depends_on(
|
depends_on(
|
||||||
"py-dask+array+dataframe+distributed+diagnostics+delayed",
|
"py-dask@:2021 +array+dataframe+distributed+diagnostics+delayed",
|
||||||
when="+parallel",
|
when="@:2022.05.0 +parallel",
|
||||||
type=("build", "run"),
|
type=("build", "run"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# xarray uses inline_array starting in v2022.06.0 which only exists
|
||||||
|
# since dask 2021.01.0
|
||||||
|
depends_on(
|
||||||
|
# +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"))
|
||||||
|
Loading…
Reference in New Issue
Block a user