summaryrefslogtreecommitdiff
path: root/src/leap/__init__.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-13 04:59:08 +0900
committerkali <kali@leap.se>2012-09-13 04:59:08 +0900
commit157dbbd6dba18a0b10ba045eab9b1cfca8d579c6 (patch)
tree06fcac9f0c4d059899e0842c4226720ea3f5106b /src/leap/__init__.py
parent99058b9f6536a3717ab82a9d77b09d5489334eb5 (diff)
parentffa95a22b2073f75d51af32232e150bf36395f31 (diff)
Merge branch 'feature/client-versioning' into develop
Close #533. Using versioneer for fetching version from git info and tags in a setup friendly way. Added info to logs and small about dialog.
Diffstat (limited to 'src/leap/__init__.py')
-rw-r--r--src/leap/__init__.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/leap/__init__.py b/src/leap/__init__.py
index a7ae10e3..75bddd6d 100644
--- a/src/leap/__init__.py
+++ b/src/leap/__init__.py
@@ -1,5 +1,30 @@
+"""
+LEAP Encryption Access Project
+website: U{https://leap.se/}
+"""
+
from leap import eip
from leap import baseapp
from leap import util
__all__ = [eip, baseapp, util]
+
+__version__ = "unknown"
+try:
+ from ._version import get_versions
+ __version__ = get_versions()['version']
+ del get_versions
+except ImportError:
+ #running on a tree that has not run
+ #the setup.py setver
+ pass
+
+__appname__ = "unknown"
+try:
+ from leap._appname import __appname__
+except ImportError:
+ #running on a tree that has not run
+ #the setup.py setver
+ pass
+
+__full_version__ = __appname__ + '/' + str(__version__)