aboutsummaryrefslogtreecommitdiff
path: root/drutils/version.py
blob: 8405e3452705b5dae2389040e555590c13e1cb12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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, 1, 0, 'b', 0)