From 745886e5ff4fb3036727b5b735d7d1822fcd83e0 Mon Sep 17 00:00:00 2001 From: yujonglee Date: Sun, 15 Nov 2026 11:16:47 +0900 Subject: [PATCH] fix(packaging): keep the litellm-proxy package version in step with litellm (#51807) The litellm-proxy manifest still said 1.109.0 after litellm moved to 1.110.0 and 1.111.0, because version bumps only rewrote the root pyproject.toml. The Docker image builds that manifest unchanged, so ghcr.io/berriai/litellm:v1.111.0-dev.2 reports litellm-proxy 1.109.0, a version that was never published. Set the manifest and uv.lock to 1.111.0, add the manifest to the commitizen version_files so cz bump rewrites it, and add a test that fails when the two versions or the lock entry disagree. --- litellm/packaging/litellm-proxy/pyproject.toml | 2 +- pyproject.toml | 1 + tests/unit/test_package_metadata.py | 7 +++++++ uv.lock | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/litellm/packaging/litellm-proxy/pyproject.toml b/litellm/packaging/litellm-proxy/pyproject.toml index 8efdca8db74..915b0e3708d 100644 --- a/litellm/packaging/litellm-proxy/pyproject.toml +++ b/litellm/packaging/litellm-proxy/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "litellm-proxy" -version = "1.109.0" +version = "1.111.0" description = "Opt-in Rust HTTP forwarding server for the LiteLLM Python proxy" requires-python = ">=3.10, <3.16" license = "MIT" diff --git a/pyproject.toml b/pyproject.toml index 7ae10633fe7..baffe10a43e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -445,6 +445,7 @@ members = ["litellm/enterprise", "litellm/proxy-extras", "litellm/packaging/lite version = "1.111.0" version_files = [ "pyproject.toml:^version", + "litellm/packaging/litellm-proxy/pyproject.toml:^version", ] [tool.pytest.ini_options] diff --git a/tests/unit/test_package_metadata.py b/tests/unit/test_package_metadata.py index d7dce33bd74..6ff5b62ff7a 100644 --- a/tests/unit/test_package_metadata.py +++ b/tests/unit/test_package_metadata.py @@ -76,6 +76,13 @@ def test_importing_litellm_reports_the_declared_release_version() -> None: assert litellm._version.version == PYPROJECT["project"]["version"] +def test_gateway_binary_package_ships_at_the_litellm_release_version() -> None: + manifest: Final = tomllib.loads((PROJECT_ROOT / "litellm/packaging/litellm-proxy/pyproject.toml").read_text()) + + assert manifest["project"]["version"] == PYPROJECT["project"]["version"] + assert _locked_package("litellm-proxy")["version"] == PYPROJECT["project"]["version"] + + def test_every_declared_extra_is_locked_with_its_requirements() -> None: declared: Final = { canonicalize_name(extra): _requirement_names(requirements) diff --git a/uv.lock b/uv.lock index e9640c98052..3dd89c01d44 100644 --- a/uv.lock +++ b/uv.lock @@ -5588,7 +5588,7 @@ source = { editable = "litellm/enterprise" } [[package]] name = "litellm-proxy" -version = "1.109.0" +version = "1.111.0" source = { editable = "litellm/packaging/litellm-proxy" } [[package]]