From 5fd6d47fd814a1829345b297ef0a00f5d3c3f799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Mei=C3=9Fl?= Date: Thu, 29 Jun 2017 21:56:10 +0200 Subject: [PATCH] Adjusting version to 3.0.0.beta.1. --- ngeo_browse_server/__init__.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/ngeo_browse_server/__init__.py b/ngeo_browse_server/__init__.py index 21024aaa..94af0216 100644 --- a/ngeo_browse_server/__init__.py +++ b/ngeo_browse_server/__init__.py @@ -28,21 +28,19 @@ #------------------------------------------------------------------------------- -VERSION = (3, 0, None, 'dev', 0) -#VERSION = (3, 0, None, 'alpha', 1) -#VERSION = (3, 0, None, 'beta', 1) -#VERSION = (3, 0, None, 'rc', 1) +#VERSION = (3, 0, 0, 'dev', 0) +#VERSION = (3, 0, 0, 'alpha', 1) +VERSION = (3, 0, 0, 'beta', 1) +#VERSION = (3, 0, 0, 'rc', 1) #VERSION = (3, 0, 0, 'final', 0) def get_version(): - version = '%s.%s' % (VERSION[0], VERSION[1]) - if VERSION[2] is not None: - version = '%s.%s' % (version, VERSION[2]) + version = '%s.%s.%s' % (VERSION[0], VERSION[1], VERSION[2]) if VERSION[3:] == ('dev', 0): - version = "%s%s" % (version, VERSION[3]) + version = "%s.%s" % (version, VERSION[3]) else: if VERSION[3] != 'final': - version = '%s%s%s' % (version, VERSION[3], VERSION[4]) + version = '%s.%s.%s' % (version, VERSION[3], VERSION[4]) return version