From 329a1788bd7e9e89004ededc0379e0b8e8016821 Mon Sep 17 00:00:00 2001 From: "pawnesh.kumar" Date: Wed, 19 Oct 2016 15:11:34 +0530 Subject: [PATCH] Fixed errors while generating releasenotes *Extension error: Could not import extension oslosphinx (exception: No module named oslosphinx) *Extension error: Could not import extension reno.sphinxtest (exception: No module named sphinxtest) *Warning, treated as error: /home/python-mistralclient/releasenotes/source/index.rst:7: WARNING: toctree contains reference to nonexisting document u'Indices and tables' Also correct the mistralclient version details. Change-Id: Icabd8a2a4876786abbad35e55f0d59ad94651d85 Closes-Bug: #1634809 --- releasenotes/source/conf.py | 7 ++++--- releasenotes/source/index.rst | 7 ------- test-requirements.txt | 1 + 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 2438d474..e1c5908d 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -24,6 +24,7 @@ # serve to show the default. # import sys, os +import pbr.version # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -39,7 +40,7 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ 'oslosphinx', - 'reno.sphinxtest', + 'reno.sphinxext', ] # Add any paths that contain templates here, relative to this directory. @@ -61,8 +62,8 @@ copyright = u'2016, Mistral 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. -# -from mistralclient.version import version_info as mistralclient_version + +mistralclient_version = pbr.version.VersionInfo('python-mistralclient') # The short X.Y version. version = mistralclient_version.canonical_version_string() # The full version, including alpha/beta/rc tags. diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst index eb01255b..b9113037 100644 --- a/releasenotes/source/index.rst +++ b/releasenotes/source/index.rst @@ -8,10 +8,3 @@ Contents :maxdepth: 2 unreleased - - - Indices and tables - ================== - - * :ref:`genindex` - * :ref:`search` diff --git a/test-requirements.txt b/test-requirements.txt index 1a4de030..a393c747 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -12,3 +12,4 @@ requests-mock>=1.1 # Apache-2.0 tempest>=12.1.0 # Apache-2.0 osprofiler>=1.4.0 # Apache-2.0 reno>=1.8.0 # Apache2 +oslosphinx>=4.7.0 # Apache-2.0