From 765a22d817ad9be69b1acd80b401c21f20b12f1e Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Fri, 10 Aug 2018 22:45:47 -0500 Subject: [PATCH] Update document building tox target This patch set updates the tox targets for doc and reno building so it is in line with other OpenStack projects' structure. Change-Id: I7f2ce87f7eb04429ace11070ce4ac07bfe2eed1a Signed-off-by: Tin Lam --- doc/requirements.txt | 6 ++++++ tox.ini | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 doc/requirements.txt diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 00000000..d78916e2 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,6 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +sphinx>=1.6.2 # BSD +sphinx_rtd_theme +reno>=2.5.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 217801fa..b4e33a9a 100644 --- a/tox.ini +++ b/tox.ini @@ -31,11 +31,16 @@ commands = {posargs} commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:docs] +deps = -r{toxinidir}/doc/requirements.txt commands = python setup.py build_sphinx [testenv:releasenotes] +deps = -r{toxinidir}/doc/requirements.txt commands = + rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +whitelist_externals = + rm [testenv:debug] commands = oslo_debug_helper {posargs}