Repository navigation
fix: derive __version__ from package metadata to prevent drift - #30
Conversation
|
@claude CI is failing. |
|
Claude finished @edenreich's task in 4m 50s —— View job CI Failure Investigation
Root cause: Fix:
Verification (replicating CI's uninstalled env against the source tree):
Committed as |
## [0.7.0](v0.6.3...v0.7.0) (2026-06-06) ### ✨ Features * add reasoning_format as explicit parameter to create_chat_completion methods ([#34](#34)) ([c2ea888](c2ea888)) ### 🐛 Bug Fixes * correct docker run -e syntax in examples/README.md ([#33](#33)) ([9c756d9](9c756d9)), closes [#27](#27) * derive __version__ from package metadata to prevent drift ([#30](#30)) ([c150560](c150560)) * make streaming delta content optional ([#31](#31)) ([1c6c533](1c6c533)) ### 👷 CI * centralize claude.yml via reusable workflow ([#13](#13)) ([d0df597](d0df597)) * centralize claude.yml via reusable workflow ([#14](#14)) ([f50da35](f50da35)) * centralize infer.yml + bump infer CLI and sync .infer config ([#17](#17)) ([126c41f](126c41f)) * centralize infer.yml + sync .infer config ([#16](#16)) ([b1166ff](b1166ff)) * centralize infer.yml via reusable workflow ([#15](#15)) ([4c9a38d](4c9a38d)) * **infer:** centralize infer.yml + bump infer CLI and sync .infer config ([#18](#18)) ([7ae73a6](7ae73a6)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.148 -> 2.1.158 ([#20](#20)) ([eeb796b](eeb796b)) * **deps:** bump codex 0.133.0 -> 0.135.0 ([#23](#23)) ([d20f9a2](d20f9a2)) * **deps:** bump infer CLI v0.117.0 -> v0.117.1, infer-action v0.9.1 -> v0.11.1 ([#19](#19)) ([7377902](7377902)) * **deps:** bump infer CLI v0.117.1 -> v0.119.0, infer-action v0.11.2 -> v0.11.4 ([#24](#24)) ([ecc2634](ecc2634)) * **deps:** bump infer-action v0.11.1 -> v0.11.2 ([#22](#22)) ([c348db4](c348db4)) * **flox:** add missing manifest.lock file ([ad15f9f](ad15f9f)) * trim requirements.txt to runtime dependencies only ([#32](#32)) ([0c95d4c](0c95d4c))
Summary
inference_gateway.__version__was hardcoded to0.5.0whilepyproject.tomldeclared0.6.3. Root cause: semantic-release (.releaserc.yaml) only rewrites and commitspyproject.tomlon release — it never updates__init__.py, so the literal drifts every release.This change derives
__version__from installed package metadata viaimportlib.metadata.version("inference-gateway"), makingpyproject.tomlthe single source of truth and eliminating the drift permanently. APackageNotFoundErrorfallback handles running from an uninstalled source checkout.Added
tests/test_version.pyto lock__version__to package metadata and guard against future regressions.Closes #25