cli[minor]: Add __version__ (#20903)

Add __version__ to cli
pull/20434/head^2
Eugene Yurtsev 3 weeks ago committed by GitHub
parent 1202017c56
commit a5028b6356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,8 @@
from importlib import metadata
try:
__version__ = metadata.version(__package__)
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
del metadata # optional, avoids polluting the results of dir(__package__)
Loading…
Cancel
Save