summaryrefslogtreecommitdiff
path: root/troveclient/__init__.py
diff options
context:
space:
mode:
authorMichael Basnight <mbasnight@gmail.com>2013-09-26 22:26:02 -0700
committerNikhil Manchanda <SlickNik@gmail.com>2013-10-09 19:21:08 -0700
commitfd43cbd73b9de8a216039e6e66a8523e4c96543d (patch)
tree052f84ab0d9904c9e850c590db8e6208edd39727 /troveclient/__init__.py
parent12a577f15a76694b8dc0182fe3b503a765974290 (diff)
downloadpython-troveclient-fd43cbd73b9de8a216039e6e66a8523e4c96543d.tar.gz
Massive refactoring to the troveclient
The new client adheres to the standards of the other clients now. It prints out tables, uses ENVVAR's for auth, no longer stores pickled json in a login token, uses openstack common, and moves the cli operations into a v1 module for the future of trove when it has a v2 api. Please note for compatibility, the troveclient.compat module has the old cli. In order to deploy it, amend the setup.cfg to include the compat module. implements blueprint cli-compliance-upgrade Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
Diffstat (limited to 'troveclient/__init__.py')
-rw-r--r--troveclient/__init__.py31
1 files changed, 13 insertions, 18 deletions
diff --git a/troveclient/__init__.py b/troveclient/__init__.py
index 6ccbda3..8efe847 100644
--- a/troveclient/__init__.py
+++ b/troveclient/__init__.py
@@ -1,5 +1,6 @@
-# Copyright (c) 2011 OpenStack Foundation
-# All Rights Reserved.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2012 OpenStack LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -13,20 +14,14 @@
# License for the specific language governing permissions and limitations
# under the License.
+__all__ = ['__version__']
+
+import pbr.version
-from troveclient.accounts import Accounts # noqa
-from troveclient.databases import Databases # noqa
-from troveclient.flavors import Flavors # noqa
-from troveclient.instances import Instances # noqa
-from troveclient.hosts import Hosts # noqa
-from troveclient.management import Management # noqa
-from troveclient.management import RootHistory # noqa
-from troveclient.management import MgmtFlavors # noqa
-from troveclient.root import Root # noqa
-from troveclient.storage import StorageInfo # noqa
-from troveclient.users import Users # noqa
-from troveclient.versions import Versions # noqa
-from troveclient.diagnostics import DiagnosticsInterrogator # noqa
-from troveclient.diagnostics import HwInfoInterrogator # noqa
-from troveclient.client import Dbaas # noqa
-from troveclient.client import TroveHTTPClient # noqa
+version_info = pbr.version.VersionInfo('python-troveclient')
+# We have a circular import problem when we first run python setup.py sdist
+# It's harmless, so deflect it.
+try:
+ __version__ = version_info.version_string()
+except AttributeError:
+ __version__ = None