Skip to content

Chore: add upper-bound constraints + pin litellm to exact version#71

Merged
cosminacho merged 2 commits into
mainfrom
feat/dependency-version-constraints
Apr 22, 2026
Merged

Chore: add upper-bound constraints + pin litellm to exact version#71
cosminacho merged 2 commits into
mainfrom
feat/dependency-version-constraints

Conversation

@cosminacho

@cosminacho cosminacho commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • litellm and langchain-litellm are pinned to exact versions (==1.83.7 / ==0.6.4) due to their history of breaking changes between minor releases.
  • All other production and dev dependencies now have an upper-bound capped at the next major version (e.g. httpx>=0.28.1,<1.0.0, pydantic>=2.12.5,<3.0.0). This prevents silent major-version upgrades while still allowing compatible minor/patch updates.

Constraint summary

Package Before After
httpx >=0.28.1 >=0.28.1,<1.0.0
tenacity >=9.1.4 >=9.1.4,<10.0.0
pydantic >=2.12.5 >=2.12.5,<3.0.0
pydantic-settings >=2.14.0 >=2.14.0,<3.0.0
uipath-platform >=0.1.34 >=0.1.34,<1.0.0
openai >=2.30.0 >=2.30.0,<3.0.0
google-genai >=1.73.1 >=1.73.1,<2.0.0
anthropic >=0.96.0 >=0.96.0,<1.0.0
litellm >=1.83.7 ==1.83.7 (pinned)
langchain >=1.2.15 >=1.2.15,<2.0.0
langchain-openai >=1.1.16 >=1.1.16,<2.0.0
langchain-google-genai >=4.2.2 >=4.2.2,<5.0.0
langchain-anthropic >=1.4.1 >=1.4.1,<2.0.0
langchain-aws >=1.4.4 >=1.4.4,<2.0.0
langchain-google-vertexai >=3.2.2 >=3.2.2,<4.0.0
langchain-azure-ai >=1.2.2 >=1.2.2,<2.0.0
langchain-fireworks >=1.1.0 >=1.1.0,<2.0.0
langchain-litellm >=0.6.4 ==0.6.4 (pinned)

Dev deps (pytest, pyright, ruff, etc.) also got upper-bounded similarly.

Which packages

  • Core 1.9.6 → 1.9.8 (root pyproject.toml changed; skips 1.9.7 which was consumed by a langchain-only release).
  • Langchain 1.9.7 → 1.9.8 (langchain pyproject.toml changed, uipath-llm-client floor bumped to 1.9.8).

Test plan

  • uv sync --all-extras resolves cleanly
  • ruff check
  • ruff format --check
  • pyright
  • pytest tests — 1522 passed, 736 skipped, 9 xpassed

🤖 Generated with Claude Code

All production and dev dependencies now have an upper bound at the
next major version (e.g. httpx>=0.28.1,<1.0.0) to guard against
accidental major-version upgrades. litellm is pinned to ==1.83.7
given its history of breaking changes within minor releases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Follows the same reasoning as litellm itself — pin to guard against
breaking changes in the litellm wrapper package.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cosminacho cosminacho merged commit 4845623 into main Apr 22, 2026
7 checks passed
@cosminacho cosminacho deleted the feat/dependency-version-constraints branch April 22, 2026 12:14
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.

1 participant