Skip to content

fix: make uv lock/sync resolve by limiting the vllm extra to Linux x86_64 - #18

Merged
MasonN808 merged 1 commit into
mainfrom
fix/uv-lock-vllm-marker
Oct 23, 2026
Merged

MasonN808 merged 1 commit into
mainfrom
fix/uv-lock-vllm-marker

Conversation

@MasonN808

Copy link
Copy Markdown
Collaborator

Fixes #17.

Change

  • vllm extra: vllm==0.12.0; sys_platform == 'linux' and platform_machine == 'x86_64', the same marker the all extra already uses. [tool.uv] required-environments includes macOS arm64, where vLLM's CUDA dependencies (flashinfer-python → nvidia-cudnn-frontend) have no wheels, so the unmarked extra made uv lock unsatisfiable.
  • uv.lock regenerated. The committed lock predated the vllm extra (it still named the project terrarium 0.1.0), so the diff is large: 126 → 216 packages, nearly all of them the vLLM stack for Linux.

Lock review

  • Only two packages already in the lock changed version: idna 3.11 → 3.20, and starlette 0.50.0 → 1.9.0. The starlette bump is forced by vLLM's prometheus-fastapi-instrumentator 8.1.0 (starlette>=1.0.0,<2); Terrarium does not import starlette directly, and the other dependents (mcp, fastapi) accept 1.x.
  • vLLM stack locked for Linux x86_64: vllm 0.12.0, torch 2.9.0, flashinfer-python 0.5.3, triton 3.5.0.

Testing

  • uv lock --check passes; uv sync --locked works on macOS arm64 (it failed before).
  • Full test suite under the uv-synced environment (starlette 1.9, mcp 1.22): 106 passed, 3 skipped; mcp client modules import.
  • macOS: --extra vllm and --all-extras do not install vLLM. Linux x86_64: a dry-run install of the exported vllm set resolves all 193 packages, including vllm 0.12.0.
  • No CI workflow uses uv; release builds use python -m build, so publishing is unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_019aZZj794GDrpH36PWqn1ZM

…6_64

[tool.uv] required-environments includes macOS arm64, but the vllm extra
required vllm==0.12.0 on every platform, and vLLM's CUDA dependencies
(flashinfer-python -> nvidia-cudnn-frontend) have no macOS wheels, so
`uv lock` had no solution and `uv sync` failed. Give the extra the same
marker the `all` extra already uses, and regenerate uv.lock, which predated
the vllm extra (126 -> 216 packages; starlette 0.50 -> 1.9 because vLLM's
prometheus-fastapi-instrumentator requires starlette>=1).

Fixes #17

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aZZj794GDrpH36PWqn1ZM
@MasonN808
MasonN808 merged commit 6273598 into main Oct 23, 2026
1 check passed
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.

uv sync/uv lock fail: vllm extra has no platform marker but required-environments includes macOS arm64

1 participant