Skip to content

fix: read version dynamically from package metadata#31

Open
torresmateo wants to merge 2 commits into
mainfrom
mateo/fix-version-reporting
Open

fix: read version dynamically from package metadata#31
torresmateo wants to merge 2 commits into
mainfrom
mateo/fix-version-reporting

Conversation

@torresmateo
Copy link
Copy Markdown
Collaborator

Summary

  • libr version was hardcoded to 0.5.0, drifting from the real package version in pyproject.toml (currently 0.13.1).
  • Read the version via importlib.metadata.version("agent-library") so output stays in sync automatically.

Closes #30

Test plan

  • uv run libr version prints Librarian v0.13.1
  • make check (ruff + mypy) passes
  • make test-fast — 83 passed, 8 skipped

`libr version` was hardcoded to 0.5.0, which drifted from the actual
package version in pyproject.toml. Read it via importlib.metadata so
the two stay in sync automatically.

Closes #30
Follow-up to the version fix - ruff prefers separate import lines for
the two names pulled from importlib.metadata.
@torresmateo torresmateo requested review from Spartee and jottakka May 22, 2026 13:59
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.

version reporting is not inline with the package version

1 participant