Closed rasbt closed 1 year ago
Thanks for the PR and the suggestion, but I have a couple nits:
importlib.metadata.version
is a little slow. About 20ms for me, which adds up quickly if enough many packages do it at import time. I mentioned it in the issue because if you know you need it, it's a small cost to pay, and it's probably a much stronger indication of environment than a __version__
attribute.So better to just hardcode it, which I could do for a future release :-)
Adds a
__version__
, attribute, for instance:Tested it locally and it works on my machine.
Fixes #190