Repository navigation
fix(deps): slim server installs from uv.lock on Python 3.14 (#5709) - #5770
Merged
Merged
Conversation
…tform, so the slim server installs on Python 3.14 magika 0.6.x (pinned by every markitdown release) caps onnxruntime<=1.20.1 on win32 only, but the universal uv.lock applied that version everywhere, and 1.20.1 has no cp314 wheels. A platform-scoped constraint forks it: win32 keeps 1.20.1, every other platform gets 1.31.0. asyncpg moves 0.30.0 -> 0.31.0, the first release with cp314 wheels (not 0.32.0, which changes pool min_size behaviour). onnxruntime 1.31 ships type hints, so the embeddings path now wraps the session output in np.asarray, as the cross-encoder already does. CI: build-api-python-versions only installed with a fresh resolve, so it never saw the lock. It now also installs from uv.lock on 3.11-3.14. Fixes #5709
nicoloboschi
force-pushed
the
triage/5709
branch
from
October 19, 2026 16:07
7c4abd0 to
a1d2a36
Compare
This was referenced Oct 20, 2026
Merged
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.
Fixes #5709.
Problem:
uv sync --frozen --python 3.14 --package hindsight-api-slimfails. The lock pins onnxruntime 1.20.1 on every platform, and that version has no cp314 wheels. The cap comes from magika 0.6.x (pinned by every markitdown release), which limits onnxruntime to <=1.20.1 on win32 only. The universal lock applied it everywhere.Fix:
pyproject.toml:constraint-dependencies = ["onnxruntime>=1.24.1; sys_platform != 'win32'"], so uv forks onnxruntime by platform. Windows keeps 1.20.1, every other platform gets 1.31.0.min_sizebehaviour.np.asarray, as the cross-encoder already does.build-api-python-versionsonly installed with a fresh resolve, so it never read the lock. It now also installs fromuv.lockon 3.11–3.14 and imports onnxruntime, magika, markitdown and asyncpg.What else changes: Linux, macOS and Docker installs from the lock now run onnxruntime 1.31.0 (was 1.20.1) and asyncpg 0.31.0 (was 0.30.0).
Tested:
lint.shpasses.