From f1795bafbf5ec2b5d55b69071cc608f1e80686e1 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Thu, 24 May 2018 21:29:16 -0700 Subject: [PATCH] Fix 'tox -e releasenotes' startup Change-Id: Ibca5d700371f3d649c3656d2e85a773ae7751d08 --- doc/requirements.txt | 1 + releasenotes/source/conf.py | 3 --- tox.ini | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 17943e0b2..5a979cfa8 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -4,3 +4,4 @@ oslo.config>=5.2.0 # Apache-2.0 openstackdocstheme>=1.18.1 # Apache-2.0 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +reno>=2.7.0 # Apache-2.0 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 02886a354..68c3cd931 100755 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -11,10 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os -import sys -sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be diff --git a/tox.ini b/tox.ini index fbb704eab..66ba9545d 100644 --- a/tox.ini +++ b/tox.ini @@ -63,6 +63,10 @@ local-check-factory = vitrage.hacking.checks.factory import_exceptions = vitrage.i18n [testenv:releasenotes] +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints]