Skip to content

Commit

Permalink
Add version info as sumo.wrapper.version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwiker committed Oct 26, 2023
1 parent 8172f0c commit cbaf1e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ requires = [
"wheel"
]

[tool.setuptools_scm]
write_to = "src/sumo/wrapper/version.py"

[tool.black]
line-length = 79
7 changes: 7 additions & 0 deletions src/sumo/wrapper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from .sumo_client import SumoClient

try:
from .version import version

__version__ = version
except ImportError:
__version__ = "0.0.0"

__all__ = ["SumoClient"]

0 comments on commit cbaf1e1

Please sign in to comment.