1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

fw/version: Add development tag to version

Add a development tag to the version format instead of using the
revision field.
This commit is contained in:
Marc Bonnici 2019-01-10 14:02:10 +00:00
parent e312efc113
commit 5263cfd6f8

View File

@ -19,14 +19,16 @@ from collections import namedtuple
from subprocess import Popen, PIPE
VersionTuple = namedtuple('Version', ['major', 'minor', 'revision'])
VersionTuple = namedtuple('Version', ['major', 'minor', 'revision', 'dev'])
version = VersionTuple(3, 1, 1)
version = VersionTuple(3, 1, 1, 'dev1')
def get_wa_version():
version_string = '{}.{}.{}'.format(
version.major, version.minor, version.revision)
if version.dev:
version_string += '.{}'.format(version.dev)
return version_string