-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does bless have a versionID that can be retrieved? #98
Comments
Rather than hardcoding the version number, which could introduce human error if the version number is not updated with each new iteration. Would something like this work for you? from importlib.metadata import version
version("bless") # outputs: 0.2.4 |
Hi @kevincar Thanks for this option; it sure works: Do you have an explanation why this option works for numpy, but not the others?
|
PS. Google on "python _version" does not help me, still wondering why not all packages have a version, or should I use another package name since it's coming with some other module? |
The |
Closing this for now. Feel free to list ideas if this posted solution is not sufficient. |
Describe the solution you'd like
Please support a
__version__
so that the version of the used library can be printed in a logfileOf course any other option serving the purpose is OK.
Describe alternatives you've considered
n/a.
Additional context
print(bless.__version__)
is helpfull when debuggingThe text was updated successfully, but these errors were encountered: