Permalink
Browse files

Added version information.

git-svn-id: https://django-timezones.googlecode.com/svn/trunk@42 86ebb30f-654e-0410-bc0d-7bf82786d749
  • Loading branch information...
brosner committed Jan 5, 2009
1 parent 5e839d7 commit 907cf8e6ad0cbfe4e02620deb13deaf672338bf2
Showing with 10 additions and 1 deletion.
  1. +1 −1 setup.py
  2. +9 −0 timezones/__init__.py
View
@@ -4,7 +4,7 @@
setup(
name = "timezones",
- version = "0.1.0-pre",
+ version = __import__("timezones").__version__,
author = "Brian Rosner",
author_email = "brosner@gmail.com",
url = "http://code.google.com/p/django-timezones/",
View
@@ -0,0 +1,9 @@
+VERSION = (0, 1, 0, "pre")
+
+def get_version():
+ if VERSION[3] != "final":
+ return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
+ else:
+ return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
+
+__version__ = get_version()

0 comments on commit 907cf8e

Please sign in to comment.