From 880d7122b87e3a0b26879dc6873252a3506dfa99 Mon Sep 17 00:00:00 2001 From: Nguyen Van Trung Date: Mon, 9 Jul 2018 14:29:08 +0700 Subject: [PATCH] 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 For more details information, please refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: Ib36e24d0b38356790993fec24b8280464645bd29 --- doc/requirements.txt | 3 +++ requirements.txt | 2 +- setup.cfg | 9 --------- test-requirements.txt | 3 --- tox.ini | 2 +- 5 files changed, 5 insertions(+), 14 deletions(-) create mode 100644 doc/requirements.txt diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..b9c5e1f --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,3 @@ +sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +openstackdocstheme>=1.18.1 # Apache-2.0 +reno>=2.5.0 # Apache-2.0 diff --git a/requirements.txt b/requirements.txt index 50e5fed..777e49c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,5 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0 six>=1.10.0 # MIT monotonic>=0.6 # Apache-2.0 futures>=3.0.0;python_version=='2.7' or python_version=='2.6' # BSD -contextlib2>=0.4.0 # PSF License +contextlib2>=0.4.0;python_version<'3.0' # PSF License PrettyTable<0.8,>=0.7.1 # BSD diff --git a/setup.cfg b/setup.cfg index 373880b..17a8d04 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,15 +22,6 @@ classifier = packages = futurist -[build_sphinx] -source-dir = doc/source -build-dir = doc/build -all_files = 1 -warning-is-error = 1 - -[upload_sphinx] -upload-dir = doc/build/html - [compile_catalog] directory = futurist/locale domain = futurist diff --git a/test-requirements.txt b/test-requirements.txt index 6e1bd22..bb1aad7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -10,10 +10,7 @@ eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT doc8>=0.6.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 python-subunit>=1.0.0 # Apache-2.0/BSD -sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD -openstackdocstheme>=1.18.1 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD testtools>=2.2.0 # MIT -reno>=2.5.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9d72f3e..0e84739 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,6 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' - sphinx-build -E -W -b doctest doc/source doc/build/doctest [testenv:pep8] basepython = python3 @@ -37,6 +36,7 @@ basepython = python2.7 [testenv:docs] basepython = python3 +deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf doc/build sphinx-build -E -W -b html doc/source doc/build/html