py-rioxarray: add v0.17.0 (#45529)

* Update available versions

* fix style

* Reduce added versions to just a single new version as per review

* fix style

* Set dependency versions in line with pyproject and setup.py

* add new interp variant

* add wheel as required

* Add variant description

* change +interp default, actually add packaging this time
This commit is contained in:
Chris Marsh 2024-08-08 11:00:39 -06:00 committed by GitHub
parent 7b879d092d
commit 6b936884f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,13 +16,30 @@ class PyRioxarray(PythonPackage):
license("Apache-2.0")
version("0.17.0", sha256="46c29938827fff268d497f7ae277077066fcfbac4e53132ed3d4e2b96455be62")
version(
"0.4.1.post0", sha256="f043f846724a58518f87dd3fa84acbe39e15a1fac7e64244be3d5dacac7fe62b"
)
depends_on("python@3.7:", type=("build", "run"))
# interpolation variant
variant("interp", default=False, when="@0.17.0:", description="Enable interpolation routines")
depends_on("py-setuptools", type="build")
depends_on("py-rasterio", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-xarray@0.17:", type=("build", "run"))
depends_on("py-pyproj@2.2:", type=("build", "run"))
with when("@0.17.0"):
depends_on("python@3.10:", type=("build", "run"))
depends_on("py-packaging", type=("build", "run"))
depends_on("py-rasterio@1.3:", type=("build", "run"))
depends_on("py-xarray@2022.3.0:", type=("build", "run"))
depends_on("py-pyproj@3.3:", type=("build", "run"))
depends_on("py-numpy@1.23:", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"), when="+interp")
with when("@0.4.1.post0"):
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-rasterio", type=("build", "run"))
depends_on("py-xarray@0.17:", type=("build", "run"))
depends_on("py-pyproj@2.2:", type=("build", "run"))
# not an optional in this version
depends_on("py-scipy", type=("build", "run"))