diff options
author | Mark McLoughlin <markmc@redhat.com> | 2013-08-08 23:16:47 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2013-10-21 14:01:53 +0100 |
commit | 5bee3dd3e5a880651fdab71906994d27a20b327f (patch) | |
tree | 8bc9a8109086f7705537c733cb73ba8ffee48b40 | |
parent | 4dcf91c72144f692b94d85a2b8a076cd63860a6f (diff) | |
download | oslo-version-5bee3dd3e5a880651fdab71906994d27a20b327f.tar.gz |
Expose VersionInfo from oslo.version package
Having to do:
from oslo.version import version
kinda sucks.
Change-Id: Ia42858e6dda0dc4407728cf44cf06fbafb8c5824
-rw-r--r-- | oslo/version/__init__.py | 5 | ||||
-rw-r--r-- | oslo/version/version.py | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/oslo/version/__init__.py b/oslo/version/__init__.py index 30ed0a7..51c6e0e 100644 --- a/oslo/version/__init__.py +++ b/oslo/version/__init__.py @@ -13,3 +13,8 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + +from oslo.version import version + + +VersionInfo = version.VersionInfo diff --git a/oslo/version/version.py b/oslo/version/version.py index 32c8638..9327af4 100644 --- a/oslo/version/version.py +++ b/oslo/version/version.py @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. +__all__ = ['VersionInfo'] + """ Utilities for consuming the version from pkg_resources. """ |