From 5263cfd6f868761f773e3a81349fa29b2ba864c8 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 10 Jan 2019 14:02:10 +0000 Subject: [PATCH] fw/version: Add development tag to version Add a development tag to the version format instead of using the revision field. --- wa/framework/version.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wa/framework/version.py b/wa/framework/version.py index 293fca7c..44f9aee6 100644 --- a/wa/framework/version.py +++ b/wa/framework/version.py @@ -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