diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 00000000..39170a63 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,7 @@ +# These are needed for docs generation +oslosphinx>=4.7.0 # Apache-2.0 +sphinx>=1.6.2 # BSD +reno>=1.8.0 # Apache-2.0 + +mock>=2.0.0 # BSD +fixtures>=3.0.0 # Apache-2.0/BSD diff --git a/tox.ini b/tox.ini index 8615d7f4..f5f54754 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ setenv = BRANCH_NAME=master install_command = pip install {opts} {packages} deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h-stable/ocata} -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' @@ -19,7 +19,8 @@ commands = flake8 commands = {posargs} [testenv:docs] -commands = python setup.py build_sphinx +deps = -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [testenv:cover] commands = python setup.py test --coverage --coverage-package-name=oslo_versionedobjects --testr-args='{posargs}' @@ -44,4 +45,5 @@ deps = pip_missing_reqs commands = pip-missing-reqs -d --ignore-module=oslo_versionedobjects* --ignore-module=pkg_resources --ignore-file=oslo_versionedobjects/test.py --ignore-file=oslo_versionedobjects/tests/* oslo_versionedobjects [testenv:releasenotes] +deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html