aboutsummaryrefslogtreecommitdiff
path: root/configlib/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'configlib/version.py')
-rw-r--r--configlib/version.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/configlib/version.py b/configlib/version.py
new file mode 100644
index 0000000..475dc6e
--- /dev/null
+++ b/configlib/version.py
@@ -0,0 +1,16 @@
+from dataclasses import dataclass
+
+
+@dataclass
+class VersionInfo:
+ major: int
+ minor: int
+ build: int
+ level: str
+ serial: int
+
+ def __str__(self):
+ return '{major}.{minor}.{build}{level}{serial}'.format(**self.__dict__)
+
+
+version = VersionInfo(1, 0, 0, 'a', 0)