Skip to content

Commit cbaf1e1

Browse files
committed
Add version info as sumo.wrapper.version.
1 parent 8172f0c commit cbaf1e1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ requires = [
66
"wheel"
77
]
88

9+
[tool.setuptools_scm]
10+
write_to = "src/sumo/wrapper/version.py"
11+
912
[tool.black]
1013
line-length = 79

src/sumo/wrapper/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
from .sumo_client import SumoClient
22

3+
try:
4+
from .version import version
5+
6+
__version__ = version
7+
except ImportError:
8+
__version__ = "0.0.0"
9+
310
__all__ = ["SumoClient"]

0 commit comments

Comments
 (0)