diff --git a/setup.py b/setup.py index 45cc590bd..18bc591e1 100644 --- a/setup.py +++ b/setup.py @@ -55,11 +55,13 @@ "pytest-cov", "pytest-rerunfailures", "pytest-xdist[psutil]", + "tox", + ], + "docs": [ "sphinx", "sphinx-rtd-theme", "sphinxcontrib-apidoc", - "tox", - ] + ], }, include_package_data=True, url="https://github.com/amazon-braket/amazon-braket-sdk-python", diff --git a/tox.ini b/tox.ini index 95c862106..f8da75234 100644 --- a/tox.ini +++ b/tox.ini @@ -107,11 +107,9 @@ commands = basepython = python3 deps = {[test-deps]deps} - sphinx - sphinx-rtd-theme - sphinxcontrib-apidoc commands = sphinx-build -E -T -b html doc build/documentation/html -j auto +extras = docs [testenv:serve-docs] basepython = python3