summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2019-01-09 23:11:16 +0000
committerBen Nemec <bnemec@redhat.com>2019-01-09 23:11:16 +0000
commitb8bf7b28101ecfd8e321e4982c19f0cd7aaeb9a8 (patch)
tree55b9c5047e89038ec489f456e4cf724799fd4b61 /tox.ini
parent8b8501e9129a76533a8288119c1ffacaf11a50cf (diff)
downloadoslo-concurrency-b8bf7b28101ecfd8e321e4982c19f0cd7aaeb9a8.tar.gz
Stop using setup.py build_sphinx
This is deprecated in pbr and the preferred way to do doc builds now is to use sphinx-build directly. Change-Id: Id5081ffb9f5b5e6ce608d2f10e9ef89a8b40eeed
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 3eb2c0d..f13f95c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -31,7 +31,10 @@ commands = {posargs}
[testenv:docs]
basepython = python3
-commands = python setup.py build_sphinx
+whitelist_externals = rm
+commands =
+ rm -fr doc/build
+ sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:cover]
basepython = python3