Fixed version reporting across all packages#112
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Metrix’s version reporting to reflect the installed distribution version produced by setuptools-scm (including git commit hash), and removes a legacy setup.py that hardcoded the package version.
Changes:
- Removed
metrix/setup.pywhich hardcodedversion="0.1.0"and could overridesetuptools-scmversioning. - Updated
metrix.__version__to be derived fromimportlib.metadata(installed package metadata) with a fallback when metadata isn’t available.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| metrix/src/metrix/init.py | Switches runtime __version__ to read from installed distribution metadata. |
| metrix/setup.py | Deletes legacy setuptools entrypoint that hardcoded the version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6622f29 to
7a75987
Compare
Delete legacy setup.py that hardcoded version="0.1.0", which overrode setuptools-scm. Replace hardcoded __version__ in __init__.py with importlib.metadata lookup so the installed version (computed by setuptools-scm with commit hash) is exposed at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7a75987 to
93471f4
Compare
Same changes as metrix: replace hardcoded __version__ with importlib.metadata lookup, fix license field format for pip show, and bump requires-python to >=3.10 (fastmcp requires it). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
62cd403 to
0c8a080
Compare
Collaborator
|
@mawad-amd , would you please make the same change to kerncap for consistent versioning across all IntelliKit projects? |
Add __version__ via importlib.metadata, add scikit-build-core metadata provider for setuptools-scm, fix license field format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
Done! d6b0b56 |
ypapadop-amd
approved these changes
Apr 8, 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.
Summary
__version__returning hardcoded values in all packages — now reads the real version from installed metadata viaimportlib.metadatapip shownot displaying theLicensefield — changedlicense = "MIT"tolicense = {text = "MIT"}in pyproject.tomlrequires-pythonclaiming>=3.8whenfastmcp>=2.0.0requires>=3.10metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"setup.pythat hardcodedversion="0.1.0"and overrode setuptools-scm — replaced with a minimal one (like iris) for backward compatibilityPackages updated
metrix, linex, accordo, nexus, kerncap
Before / After
Test plan
Tested all 5 packages on hpcfund (Python 3.12) with 3 install methods each:
pip install -e .pip install .pip install git+....postN+g<hash>versionLicense: MITinpip show🤖 Generated with Claude Code