Make __version__ available in the whole module

This shortens the include from "from .__version__ import __version__"
to "from . import __version__" within the module.

Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
Claudius Heine 2017-06-19 09:16:50 +02:00 committed by Daniel Wagner
parent c9d961f3ee
commit 4df59537ba
3 changed files with 3 additions and 2 deletions

View File

@ -22,3 +22,4 @@
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'
from .__version__ import __version__

View File

@ -37,7 +37,7 @@ except ImportError:
from .build import Build
from .shell import Shell
from .__version__ import __version__
from . import __version__
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'

View File

@ -23,7 +23,7 @@
from setuptools import setup, find_packages
from os import path
from kas.__version__ import __version__
from kas import __version__
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'