aboutsummaryrefslogtreecommitdiff
path: root/configlib/version.py
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-07-06 10:35:54 +0200
committerromangraef <romangraef@loves.dicksinhisan.us>2018-07-06 10:35:54 +0200
commitcbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23 (patch)
treebfe6aa26d7cab12334ae79b353ba2ec365f2b582 /configlib/version.py
downloadconfiglib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.tar.gz
configlib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.tar.bz2
configlib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.zip
Initial commit
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)