Skip to content

Commit

Permalink
Get version of matcalc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Jul 26, 2023
1 parent 27f864f commit 8c3e6b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions matcalc/__init__.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8c3e6b9

Please sign in to comment.