Skip to content

Commit

Permalink
master is now 0.2 work and modified version handling for dev releases
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Dec 11, 2009
1 parent c9d2d11 commit 91d9a2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions notification/__init__.py
@@ -1,9 +1,11 @@
VERSION = (0, 1, 5, "final")
VERSION = (0, 2, 0, "dev", 1)

def get_version():
if VERSION[3] != "final":
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
else:
if VERSION[3] == "final":
return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
elif VERSION[3] == "dev":
return "%s.%s.%s%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3], VERSION[4])
else:
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])

__version__ = get_version()

0 comments on commit 91d9a2f

Please sign in to comment.