Skip to content

Commit 5875554

Browse files
committed
export __version__ from package root
1 parent fef3274 commit 5875554

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/cppe/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
from .pycppe import __build_type__, __parallel__
33
from .pycppe.tensors import *
44

5+
try:
6+
from ._version import version as __version__
7+
except Exception:
8+
try:
9+
from importlib.metadata import version as _pkg_version
10+
11+
__version__ = _pkg_version("cppe")
12+
except Exception:
13+
__version__ = "0+unknown"
14+
515
all = [
616
"__build_type__",
717
"__parallel__",
18+
"__version__",
819
]

0 commit comments

Comments
 (0)