1"""
2store the current version info of the server.
3"""
4import re
5
6# Version string must appear intact for tbump versioning
7__version__ = '6.6.0'
8
9# Build up version_info tuple for backwards compatibility
10pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
11match = re.match(pattern, __version__)
12parts = [int(match[part]) for part in ['major', 'minor', 'patch']]
13if match['rest']:
14    parts.append(match['rest'])
15version_info = tuple(parts)
16
17kernel_protocol_version_info = (5, 3)
18kernel_protocol_version = '%s.%s' % kernel_protocol_version_info
19