Permalink
Browse files

updated versioning and bump to 0.2

  • Loading branch information...
1 parent 8da6548 commit adf2fb3dcb353733bc8f8742388e2e34f17e3d70 @brosner committed Nov 11, 2011
Showing with 10 additions and 9 deletions.
  1. +10 −9 timezones/__init__.py
View
@@ -1,15 +1,16 @@
-VERSION = (0, 2, 0, "dev", 2)
+VERSION = (0, 2, 0, "f") # following PEP 386
+DEV_N = None
def get_version():
- if VERSION[3] == "final":
- return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
- elif VERSION[3] == "dev":
- if VERSION[2] == 0:
- return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[3], VERSION[4])
- 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 = "%s.%s" % (VERSION[0], VERSION[1])
+ if VERSION[2]:
+ version = "%s.%s" % (version, VERSION[2])
+ if VERSION[3] != "f":
+ version = "%s%s%s" % (version, VERSION[3], VERSION[4])
+ if DEV_N:
+ version = "%s.dev%s" % (version, DEV_N)
+ return version
__version__ = get_version()

0 comments on commit adf2fb3

Please sign in to comment.