diff --git a/matcalc/__init__.py b/matcalc/__init__.py index 5c91664..f4eb745 100644 --- a/matcalc/__init__.py +++ b/matcalc/__init__.py @@ -1 +1,9 @@ """Calculators for materials properties.""" +from __future__ import annotations + +from importlib.metadata import PackageNotFoundError, version + +try: + __version__ = version("matcalc") +except PackageNotFoundError: + pass # package not installed