77e207e90d
These properties should simplify integration with other plugins Change-Id: Ia0246114a51f9e4a4ad6c998a50ad13483be9f51
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
# All Rights Reserved.
|
|
#
|
|
# 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
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
import pbr.version
|
|
from rally.common import version as __rally_version__
|
|
|
|
__rally_version__ = __rally_version__.version_info.semantic_version()
|
|
__rally_version__ = __rally_version__.version_tuple()
|
|
|
|
if __rally_version__ < (0, 12):
|
|
# NOTE(andreykurilin): Rally < 0.12 doesn't care about loading options from
|
|
# external packages, so we need to handle it manually.
|
|
|
|
from rally.common import opts as global_opts
|
|
|
|
from rally_openstack.cfg import opts
|
|
|
|
# ensure that rally options are registered.
|
|
global_opts.register()
|
|
global_opts.register_opts(opts.list_opts().items())
|
|
|
|
__version_info__ = pbr.version.VersionInfo("rally-openstack")
|
|
__version__ = __version_info__.version_string()
|
|
__version_tuple__ = __version_info__.semantic_version().version_tuple()
|