Skip to content

Commit

Permalink
cli[minor]: Add __version__ (#20903)
Browse files Browse the repository at this point in the history
Add __version__ to cli
  • Loading branch information
eyurtsev authored Apr 25, 2024
1 parent 1202017 commit a5028b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/cli/langchain_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -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__)

0 comments on commit a5028b6

Please sign in to comment.