Skip to content

chore: expose package version via __init__.py#3034

Merged
deng451e merged 5 commits intoLMCache:devfrom
hlin99:ww16_PR_version
Apr 16, 2026
Merged

chore: expose package version via __init__.py#3034
deng451e merged 5 commits intoLMCache:devfrom
hlin99:ww16_PR_version

Conversation

@hlin99
Copy link
Copy Markdown
Contributor

@hlin99 hlin99 commented Apr 15, 2026

Import version so that users can access
the version string via lmcache.__version__.


Note

Low Risk
Small, isolated change to package metadata exposure with a guarded import; no behavioral impact beyond adding a new public attribute.

Overview
lmcache/__init__.py now imports __version__ from lmcache._version so consumers can read the package version via lmcache.__version__, and falls back to "unknown" if the module is not present (e.g., source checkouts).

The module also exports this symbol via __all__.

Reviewed by Cursor Bugbot for commit 8e08d51. Bugbot is set up for automated code reviews on this repo. Configure here.

Import __version__ so that users can access
the version string via `lmcache.__version__`.

Signed-off-by: Tony Lin <tony.lin@intel.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies lmcache/init.py to import version from the _version module and add it to the all list, ensuring the package version is correctly exposed. I have no feedback to provide.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d8f34b2. Configure here.

Comment thread lmcache/__init__.py Outdated
@deng451e deng451e self-requested a review April 15, 2026 05:20
@deng451e deng451e requested a review from sammshen April 15, 2026 05:21
Signed-off-by: Tony Lin <tony.lin@intel.com>
Copy link
Copy Markdown
Contributor

@sammshen sammshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deng451e deng451e enabled auto-merge (squash) April 16, 2026 04:58
@github-actions github-actions Bot added the full Run comprehensive tests on this PR label Apr 16, 2026
@deng451e deng451e merged commit facdc4e into LMCache:dev Apr 16, 2026
37 of 38 checks passed
@hlin99 hlin99 deleted the ww16_PR_version branch April 25, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full Run comprehensive tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants