0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-02-06 06:20:03 +00:00
alerta_alerta/alerta/__init__.py

18 lines
439 B
Python

import os
import build
VERSION = (3, 1, 0, 'final', 0)
def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
if VERSION[3] != 'final':
version = '%s %s %s' % (version, VERSION[3], VERSION[4])
if build.BUILD_NUMBER != 'DEV':
version = '%s-build.%s' % (version, build.BUILD_NUMBER)
return version
__version__ = get_version()