Add the version.py module

This commit is adding the version.py module for ironic-staging-drivers
and updating the doc/source/conf.py configuration file to use the new
version module.

Change-Id: If845ebb4ca35293a1cd4bd1a42e93999cb919777
This commit is contained in:
Lucas Alvares Gomes 2016-02-05 16:54:56 +00:00
parent bb057ce38c
commit 52e5a3a766
2 changed files with 29 additions and 0 deletions

View File

@ -40,6 +40,17 @@ master_doc = 'index'
project = u'ironic-staging-drivers'
copyright = u'2016, Ironic Staging Drivers Developers '
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
from ironic_staging_drivers import version as isd_version
# The full version, including alpha/beta/rc tags.
release = isd_version.version_info.release_string()
# The short X.Y version.
version = isd_version.version_info.version_string()
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True

View File

@ -0,0 +1,18 @@
# Copyright 2016 Red Hat, Inc.
# 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
version_info = pbr.version.VersionInfo('ironic-staging-drivers')