Added solar.version

- Added solar.version file, it contains pbr version_info
- Use version_info.release_string and
  version_info.version_string in docs

Change-Id: I7894e79aacc736032313f81b11fd0561344d702a
This commit is contained in:
Jedrzej Nowak 2016-02-19 10:03:55 +01:00
parent c2bb129b79
commit e26f0083bb
2 changed files with 22 additions and 2 deletions

View File

@ -59,10 +59,13 @@ author = u'OpenStack'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
from solar.version import version_info
# The short X.Y version.
version = '0.0.1'
version = version_info.version_string()
# The full version, including alpha/beta/rc tags.
release = '0.0.1'
release = version_info.release_string()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

17
solar/version.py Normal file
View File

@ -0,0 +1,17 @@
# Copyright 2015 Mirantis, Inc.
#
# 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('solar')