osc-lib/osc_lib/version.py
Jamie Lennox 5b0f4d27de Allow passing app_name and app_version for useragent
Keystoneauth now supports passing app_name and app_version when creating
the session to build a sensible user agent string including client
versions. osc-lib and OpenStack Client should be amongst the first to
support this.

Change-Id: Ia46c1eea29678824a5934d846a08dbe52f5058d0
2016-10-20 10:13:03 +11:00

20 lines
710 B
Python

# 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
__all__ = ['version_info', 'version_string']
version_info = pbr.version.VersionInfo('osc-lib')
version_string = version_info.version_string()