This repository was archived by the owner on Feb 21, 2025. It is now read-only.
fix: re-expose __version__ in package root#14
Merged
nothingface0 merged 1 commit intodevfrom Feb 17, 2025
Merged
Conversation
This commit simply re-expose the `__version__` variable in the package root to avoid a breaking change. ## Breaking change introduced in `3.1.0-0` Users might programatically fetch the package version using `runregistry.__version__`. From `3.1.0-0` users would have to access the version using `runregistry.runregistry.__version__`. ## Test ### Before ``` >>> import runregistry >>> >>> runregistry.__version__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'runregistry' has no attribute '__version__' >>> >>> runregistry.runregistry.__version__ '3.1.0-0' ``` ### After ``` >>> import runregistry >>> runregistry.__version__ '3.1.0-0' >>> runregistry.runregistry.__version__ '3.1.0-0' ```
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #14 +/- ##
==========================================
+ Coverage 95.51% 95.52% +0.01%
==========================================
Files 4 4
Lines 379 380 +1
==========================================
+ Hits 362 363 +1
Misses 17 17 ☔ View full report in Codecov by Sentry. |
gabrielmscampos
added a commit
that referenced
this pull request
Feb 15, 2025
Contributor
|
Thanks @gabrielmscampos ! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This commit simply re-expose the
__version__variable in the package root to avoid a breaking change.Breaking change introduced in
3.1.0-0Users might programmatically fetch the package version using
runregistry.__version__. From3.1.0-0users would have to access the version usingrunregistry.runregistry.__version__.Test
Before
After