feat: export evaluatorq.__version__ - #187
Merged
Baukebrenninkmeijer merged 1 commit intoSep 2, 2026
Merged
Conversation
`import evaluatorq; print(evaluatorq.__version__)` now works. The value comes from installed package metadata (the version is tag-driven via hatch-vcs), falling back to `0.0.0.dev0` when the package is imported from a source checkout that was never installed. `eq --version` now reads the same attribute instead of calling `importlib.metadata.version` a second time, so the CLI and the library can never disagree. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Baukebrenninkmeijer
requested review from
arianpasquali and
currentlycodinng
as code owners
September 2, 2026 19:57
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||
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.
import evaluatorq; print(evaluatorq.__version__)works now. It reads installed package metadata (the version is tag-driven via hatch-vcs, so metadata is the only place the real number lives), and falls back to0.0.0.dev0when the package is imported from a source checkout that was never installed.eq --versionnow prints that same attribute instead of callingimportlib.metadata.version('evaluatorq')itself, so the CLI and the library cannot drift apart.__version__is added to__all__. No build-config change, no generated_version.py.🤖 Generated with Claude Code