diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-26 21:05:44 +0100 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-26 21:05:44 +0100 |
commit | c8808ec947590b0ab2cce69484e71aa90fecabf0 (patch) | |
tree | e2fed2eae59b9dcee961d101443664d9b4711f98 /drutils/version.py | |
download | drutils-c8808ec947590b0ab2cce69484e71aa90fecabf0.tar.gz drutils-c8808ec947590b0ab2cce69484e71aa90fecabf0.tar.bz2 drutils-c8808ec947590b0ab2cce69484e71aa90fecabf0.zip |
Initial commit
Diffstat (limited to 'drutils/version.py')
-rw-r--r-- | drutils/version.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drutils/version.py b/drutils/version.py new file mode 100644 index 0000000..5e43541 --- /dev/null +++ b/drutils/version.py @@ -0,0 +1,20 @@ +"""versioninfo""" + + +# pylint: disable=too-few-public-methods +class VersionInfo: + """Version info dataclass""" + + # pylint: disable=too-many-arguments + def __init__(self, major: int, minor: int, build: int, level: str, serial: int): + self.major = major + self.minor = minor + self.build = build + self.level = level + self.serial = serial + + def __str__(self): + return '{major}.{minor}.{build}{level}{serial}'.format(**self.__dict__) + + +VERSION = VersionInfo(1, 0, 0, 'a', 0) |