chore: pin latest dependency versions with uv lock - #90
Closed
LiberiFatali wants to merge 1 commit into
Closed
Conversation
Replace the pip-based setup (requirements.txt) with a uv-locked workflow and pin the latest compatible dependency stack: - pydantic-ai 2.27.0, openai 2.53.0, litellm 1.96.0, mcp 1.29.0 (kept <2: mcp.server.fastmcp was removed in 2.0), tree-sitter 0.26.0, griffe via griffelib 2.1.0 - regenerate uv.lock, add .python-version, switch CI to uv sync - add tests/test_latest_compat.py: offline import/instantiation smoke tests for the pinned contracts (Agent signature, fallback models, mcp 1.x symbols, griffe docstring imports) - guard the module-level sys.stdout re-wrap in str_replace_editor so it never clobbers pytest's capture object
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
Replaces the pip-based dependency management (
requirements.txt) with a uv-locked workflow and pins the latest compatible dependency stack as the repo's good state.Key changes
uv.lock(regenerated),.python-version, CI switched touv sync --frozen --extra devviaastral-sh/setup-uv.pydantic-ai2.27.0 (was 1.30.x)openai2.53.0,litellm1.96.0mcp1.29.0 — kept<2becausemcp.server.fastmcpwas removed in mcp 2.0 (codewiki/src/be/caw_toolkit.pyimportsContextfrom it)tree-sitter0.26.0,griffeviagriffelib2.1.0tests/test_latest_compat.py): offline import + instantiation smoke tests that pin the contracts the codebase relies on —Agent(...)construction signature,create_fallback_models→PydanticAIBackendwiring, mcp 1.x symbols, griffe docstring imports.sys.stdout = io.TextIOWrapper(...)re-wrap incodewiki/src/be/agent_tools/str_replace_editor.pyso it never clobbers pytest's capture object (was crashing the test session teardown).Verification
uv lock --check✓uv run pytest tests/→ 49 passed (42 existing + 7 new) ✓uv run ruff checkon changed files ✓Notes
README.md(pip) is intentionally left unchanged.mcp<2upper bound is deliberate and documented: mcp 2.x removed themcp.server.fastmcpmodule the MCP server imports.