From b005d0b5eae4328e1482d0571f4dbc7164fef21f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 9 Sep 2011 14:41:49 +0100 Subject: [PATCH] Add versioning information to eve_api --- app/eve_api/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/eve_api/__init__.py b/app/eve_api/__init__.py index e69de29..805a0d1 100644 --- a/app/eve_api/__init__.py +++ b/app/eve_api/__init__.py @@ -0,0 +1,11 @@ +VERSION = (0, 1) + +# Dynamically calculate the version based on VERSION tuple +if len(VERSION)>2 and VERSION[2] is not None: + str_version = "%d.%d_%s" % VERSION[:3] +else: + str_version = "%d.%d" % VERSION[:2] + +__version__ = str_version + +