From ea13e9a04786fbb6c461690097361e48e8ca94ce Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 13 Sep 2012 03:22:31 +0900 Subject: add versioneer --- src/leap/__init__.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/leap/__init__.py') 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__) -- cgit v1.2.3