Skip to content

Commit

Permalink
Adjusting version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed May 22, 2019
1 parent eef9878 commit 58115fb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ngeo_browse_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@
#-------------------------------------------------------------------------------


VERSION = (2, 1, 0, 'dev', 0)
VERSION = (2, 1, 0, 'rc', 1)


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

0 comments on commit 58115fb

Please sign in to comment.