Add polars dependency for rusterize >=0.8#94
Merged
Conversation
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>
This was referenced Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rusterize 0.8.0 moved its
geopandas/pandas/pyarrow/polarsdependencies into an optional[all]extra (core dep is now just numpy), so a bare install can no longer rasterize GeoDataFrames:This broke the
rusterizeCI jobs and the Read the Docs build (the line-zonal-stats notebook callsrasterize(engine="rusterize")) — the first fresh env solves sincepixi.lockwas removed in #87 picked up 0.8.0.Changes:
pyproject.toml: addpolarsto therusterizeanddocsextraspixi.toml: addpolarsto thewith-rusterizefeature; also addrusterizeto thedocsfeature, which was missing it entirely (localdocs-buildcouldn't execute the notebook at all)polarsalone is sufficient (no pyarrow): verified in a clean venv that rusterize 0.8.0 + polars handles GeoDataFrame input via theencoding="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