From 42f38be0ab97729eea4efcf28702807576936c44 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 20 Dec 2017 14:30:11 +0800 Subject: [PATCH] Update docs build job for new documentation PTI jobs openstack infra use a new way for building documents[1] [1]:See http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html for details Change-Id: I2cb0ae3130e61991e017d66b7b2e2711f3c21bfd --- setup.cfg | 5 ----- tox.ini | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index 1a07c8e..f7ea713 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,11 +11,6 @@ classifier = License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux -[build_sphinx] -all_files = 1 -build-dir = doc/build -source-dir = doc/source - [pbr] warnerrors = True diff --git a/tox.ini b/tox.ini index d587f74..137eb4d 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,10 @@ commands = python setup.py testr --slowest --testr-args='{posargs}' commands = {posargs} [testenv:docs] -commands = python setup.py build_sphinx +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [testenv:doc8] deps = -r{toxinidir}/requirements.txt doc8