Skip to content

Add polars dependency for rusterize >=0.8#94

Merged
dcherian merged 1 commit into
mainfrom
fix-rusterize-polars
Jun 2, 2026
Merged

Add polars dependency for rusterize >=0.8#94
dcherian merged 1 commit into
mainfrom
fix-rusterize-polars

Conversation

@dcherian

@dcherian dcherian commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

rusterize 0.8.0 moved its geopandas/pandas/pyarrow/polars dependencies into an optional [all] extra (core dep is now just numpy), so a bare install can no longer rasterize GeoDataFrames:

ModuleNotFoundError: polars must be installed when data is geopandas.GeoDataFrame.

This broke the rusterize CI jobs and the Read the Docs build (the line-zonal-stats notebook calls rasterize(engine="rusterize")) — the first fresh env solves since pixi.lock was removed in #87 picked up 0.8.0.

Changes:

  • pyproject.toml: add polars to the rusterize and docs extras
  • pixi.toml: add polars to the with-rusterize feature; also add rusterize to the docs feature, which was missing it entirely (local docs-build couldn't execute the notebook at all)

polars alone is sufficient (no pyarrow): verified in a clean venv that rusterize 0.8.0 + polars handles GeoDataFrame input via the encoding="numpy" path rasterix uses. rusterize's only extras are [all] (which drags in polars-st, pyarrow, rioxarray) and [xarray], so an explicit polars dep is the minimal fix.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@dcherian dcherian merged commit 1a008ee into main Jun 2, 2026
11 checks passed
@dcherian dcherian deleted the fix-rusterize-polars branch June 2, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant