From 61661692952f4ff78e2ab85dcdeed29ed037c844 Mon Sep 17 00:00:00 2001 From: Niko Fink Date: Fri, 10 Apr 2020 22:20:28 +0200 Subject: [PATCH] fix sphinx build with poetry --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 3f88439..bbe3870 100644 --- a/tox.ini +++ b/tox.ini @@ -4,9 +4,10 @@ envlist = py36, py37, py38, pypy [testenv:docs] description = invoke sphinx-build to build the HTML docs -basepython = python3.7 deps = sphinx >= 1.7.5, < 2 -commands = sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -W -bhtml {posargs} +commands = + poetry install -v + sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -bhtml {posargs} python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))' [testenv]