Skip to content

build: remove Polars and relock (unblocks free-threaded CI) - #15404

Merged
cclauss merged 1 commit into
TheAlgorithms:masterfrom
priya-sundaram-dev:remove-polars-revert-free-threading
Sep 22, 2026
Merged

cclauss merged 1 commit into
TheAlgorithms:masterfrom
priya-sundaram-dev:remove-polars-revert-free-threading

Conversation

@priya-sundaram-dev

Copy link
Copy Markdown
Contributor

As discussed in #15395.

Polars only ships `cp310-abi3` wheels, and abi3/stable-ABI wheels are not loadable under free-threaded CPython. Because the repo targets `3.14t` (`.python-version`), uv cannot use a wheel for polars and falls back to compiling the ~3 MB Rust sdist from source. That rebuild fires on every `uv.lock` change and is what has been slowing the build.

Upstream is not yet ready to publish free-threaded wheels (pola-rs/polars#27955), so this reverts the Polars dependency until they do.

Changes:

  • Remove `polars>=1.44.2` from `pyproject.toml`
  • Relock with `uv sync --upgrade && uv lock` (drops all polars entries from `uv.lock`; no other version changes)

No source files import `polars`, so nothing else is affected. When `polars-runtime` starts shipping `cp314t` wheels we can re-add it.

Closes #15395

Polars only ships cp310-abi3 wheels, which are not loadable under the
free-threaded CPython the repo targets (.python-version = 3.14t). uv
therefore builds the ~3 MB Rust sdist from source on every uv.lock
change, making CI builds very slow. Upstream (pola-rs/polars#27955)
is not yet ready to publish free-threaded wheels.

Remove polars from pyproject.toml and relock (uv sync --upgrade && uv lock).
No source files import polars, so nothing else changes.
@algorithms-keeper algorithms-keeper Bot added awaiting reviews This PR is ready to be reviewed invalid labels Sep 22, 2026
@algorithms-keeper algorithms-keeper Bot removed the awaiting reviews This PR is ready to be reviewed label Sep 22, 2026
@cclauss cclauss reopened this Sep 22, 2026
@algorithms-keeper algorithms-keeper Bot added the enhancement This PR modified some existing files label Sep 22, 2026
@TheAlgorithms TheAlgorithms deleted a comment from algorithms-keeper Bot Sep 22, 2026
@cclauss
cclauss merged commit 2ee6d96 into TheAlgorithms:master Sep 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This PR modified some existing files invalid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert: Replace Pandas with Polars

2 participants