aboutsummaryrefslogtreecommitdiff
path: root/configlib/version.py
blob: 475dc6eee0c8ec3d550316d8607605bd949e78ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)