mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
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.
This commit is contained in:
parent
e38187324a
commit
745886e5ff
4 changed files with 10 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
2
uv.lock
generated
2
uv.lock
generated
|
|
@ -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]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue