Skip to content

Commit 91d9a2f

Browse files
committed
master is now 0.2 work and modified version handling for dev releases
1 parent c9d2d11 commit 91d9a2f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

notification/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
VERSION = (0, 1, 5, "final")
1+
VERSION = (0, 2, 0, "dev", 1)
22

33
def get_version():
4-
if VERSION[3] != "final":
5-
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
6-
else:
4+
if VERSION[3] == "final":
75
return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
6+
elif VERSION[3] == "dev":
7+
return "%s.%s.%s%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3], VERSION[4])
8+
else:
9+
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
810

911
__version__ = get_version()

0 commit comments

Comments
 (0)