From b8bf7b28101ecfd8e321e4982c19f0cd7aaeb9a8 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Wed, 9 Jan 2019 23:11:16 +0000 Subject: [PATCH] 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 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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