diff options
author | Nguyen Hai <nguyentrihai93@gmail.com> | 2018-03-20 17:47:13 +0900 |
---|---|---|
committer | Nguyen Hai <nguyentrihai93@gmail.com> | 2018-03-20 17:47:42 +0900 |
commit | a62d1e74712bfdec37bcc917a17fa1940af7ef9d (patch) | |
tree | bd9b35c41f8abfa75cb97ab00f2e55a878b2ec05 | |
parent | d0bf6c406e402301c09e0ec4a303833713014426 (diff) | |
download | python-barbicanclient-a62d1e74712bfdec37bcc917a17fa1940af7ef9d.tar.gz |
Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: I8bdd2912638e497f3ade79967136d1d6924574f5
-rw-r--r-- | doc/requirements.txt | 2 | ||||
-rw-r--r-- | test-requirements.txt | 4 | ||||
-rw-r--r-- | tox.ini | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..d3348d6 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,2 @@ +sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +openstackdocstheme>=1.18.1 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 946b65e..193d070 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -12,7 +12,3 @@ oslotest>=3.2.0 # Apache-2.0 nose>=1.3.7 # LGPL oslo.config>=5.1.0 # Apache-2.0 python-openstackclient>=3.12.0 # Apache-2.0 - -# Documentation build requirements -sphinx!=1.6.6,>=1.6.2 # BSD -openstackdocstheme>=1.18.1 # Apache-2.0 @@ -27,7 +27,11 @@ commands = flake8 {posargs} commands = {posargs} [testenv:docs] -commands = python setup.py build_sphinx +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [testenv:functional] # This tox env is purely to make local test development easier |