From d3d76e08fcb7aec2afd53a0d151d05512bad6584 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 29 Dec 2017 11:56:10 -0600 Subject: [PATCH] Follow the new PTI for document build For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html For more detials information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: Ifa689b590378f58d7abe2a52e8b92f5f32dc5196 --- doc/requirements.txt | 7 +++++++ tox.ini | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 doc/requirements.txt diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..ae18448 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,7 @@ +# These are needed for docs generation +openstackdocstheme>=1.17.0 # Apache-2.0 +sphinx>=1.6.2 # BSD +reno>=2.5.0 # Apache-2.0 + +mock>=2.0.0 # BSD +fixtures>=3.0.0 # Apache-2.0/BSD diff --git a/tox.ini b/tox.ini index 94b3d6b..c152eca 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,8 @@ commands = commands = {posargs} [testenv:docs] -commands = python setup.py build_sphinx +deps = -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [flake8] show-source = True @@ -52,4 +53,5 @@ deps = pip_missing_reqs commands = pip-missing-reqs -d --ignore-module=oslo_rootwrap* --ignore-module=pkg_resources --ignore-file=oslo_rootwrap/test.py --ignore-file=oslo_rootwrap/tests/* oslo_rootwrap [testenv:releasenotes] +deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html