diff --git a/pyprophet/__init__.py b/pyprophet/__init__.py index e69de29..acff3bb 100644 --- a/pyprophet/__init__.py +++ b/pyprophet/__init__.py @@ -0,0 +1,10 @@ +from importlib.metadata import PackageNotFoundError, version + +def _detect_version() -> str: + """Return the installed package version""" + try: + return version("pyprophet") + except PackageNotFoundError: + return "0+unknown" + +__version__ = _detect_version()