From b8ad99f30b4c9a9ed496d31f941f092fee4b58fe Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Tue, 19 Dec 2017 16:26:16 +0800 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: Ib02738563f5ae3712e1074a3b08c693ea7cdea79 --- 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 54c4204..cb12dee 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,8 @@ commands = flake8 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 [testenv:cover] commands = python setup.py test --coverage --coverage-package-name=oslo_versionedobjects --testr-args='{posargs}' @@ -44,4 +45,5 @@ deps = pip_missing_reqs commands = pip-missing-reqs -d --ignore-module=oslo_versionedobjects* --ignore-module=pkg_resources --ignore-file=oslo_versionedobjects/test.py --ignore-file=oslo_versionedobjects/tests/* oslo_versionedobjects [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 -- GitLab