From a3e9f3230734b49e9d54d80b863596c0ae30f78e Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Tue, 2 Jun 2026 16:23:40 -0600 Subject: [PATCH] CI: add polars for rusterize >=0.8 rusterize 0.8.0 moved its geopandas/polars/pyarrow dependencies into an optional [all] extra, so a bare install can no longer rasterize GeoDataFrames ("polars must be installed when data is geopandas.GeoDataFrame"). Add polars explicitly to the rusterize and docs extras, and to the pixi with-rusterize feature. Also add rusterize itself to the pixi docs feature so docs-build works locally. Co-Authored-By: Claude Opus 4.8 (1M context) --- pixi.toml | 8 ++++++++ pyproject.toml | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pixi.toml b/pixi.toml index 0fb4828..3023315 100644 --- a/pixi.toml +++ b/pixi.toml @@ -46,6 +46,10 @@ pytest-xdist = "*" [feature.with-rasterio.dependencies] rasterio = "*" +[feature.with-rusterize.dependencies] +# rusterize >=0.8 no longer depends on polars, but needs it for GeoDataFrame input +polars = "*" + [feature.with-rusterize.pypi-dependencies] rusterize = ">=0.7.1" @@ -73,6 +77,10 @@ furo = "*" numpydoc = "*" sphinxext-opengraph = "*" xvec = "*" +polars = "*" + +[feature.docs.pypi-dependencies] +rusterize = ">=0.7.1" [feature.docs.tasks] docs-build = { cmd = "sphinx-build -b html . _build/html", cwd = "docs" } diff --git a/pyproject.toml b/pyproject.toml index 91895c2..03317f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,8 @@ dynamic=["version"] [project.optional-dependencies] dask = ["dask-geopandas"] rasterize = ["rasterio"] -rusterize = ["rusterize>=0.7.1"] +# rusterize >=0.8 no longer depends on polars, but needs it for GeoDataFrame input +rusterize = ["rusterize>=0.7.1", "polars"] exactextract = ["exactextract", "sparse"] docs = [ "geodatasets", @@ -46,6 +47,7 @@ docs = [ "dask-geopandas", "rasterio", "rusterize>=0.7.1", + "polars", # needed by rusterize for GeoDataFrame input "rioxarray", "exactextract", "sparse",