linkml-activitypub/linkml_activitypub/_version.py

7 lines
186 B
Python

from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version(__name__)
except PackageNotFoundError:
# package not installed
__version__ = "0.0.0"