Fix version bugs#153
Merged
Merged
Conversation
38c9a66 to
cc14242
Compare
There was a problem hiding this comment.
Pull request overview
Fixes the CLI/package version reporting after the PyPI distribution rename to agentevals-cli by aligning the runtime metadata lookup and switching packaging to VCS-derived versions.
Changes:
- Update
agentevals.__version__to resolve from the installedagentevals-clidistribution and add regression tests for both module and CLI--version. - Move to
hatch-vcs(dynamic = ["version"]) and remove the manualuv version ...step from the release workflow; ensure CI/release checkouts fetch full history/tags. - UI tweak to shrink the displayed version text in the sidebar footer.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/agentevals/__init__.py |
Fix version lookup to use the published distribution name (agentevals-cli). |
tests/test_cli.py |
Add regression tests to ensure module/CLI versions don’t fall back to 0.0.0-dev. |
pyproject.toml |
Switch to hatch-vcs with a dynamic version sourced from git tags. |
.github/workflows/release.yml |
Remove manual version injection; fetch full git history for tag-based versioning. |
.github/workflows/ci.yml |
Fetch full git history in CI so VCS-based version resolution can see tags. |
.github/workflows/publish-evaluator-sdk.yml |
Fetch full git history (tags) for the SDK publishing workflow. |
ui/src/components/sidebar/Sidebar.tsx |
Reduce footer version label font size to fit long dev version strings. |
uv.lock |
Lockfile updates reflecting the dynamic version change and extras ordering. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
peterj
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
agentevals --versionhas been printing0.0.0-devon every published release since the PyPI rename toagentevals-cli.While in there:
hatch-vcsso the version comes straight from git tags.uv version "$VERSION"step in release.yml.fetch-depth: 0so hatch-vcs can see tags.Added
tests/test_cli.pyv0.9.2.dev0+g<sha>fit on a single line in the UI footer.Fixes #152