switch the build to use python3

Update the build to use python3 as part of the python3-first goal.

Change-Id: Ia94e4ed3881aa6a9c3d2da3303d76d4136876ce9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-28 13:22:59 -04:00
parent da8b051510
commit 4390a71381
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ tools/build-all-rst.sh --pdf
# Build the www pages so that openstack-indexpage creates a link to
# www/www-index.html.
if [ "$PUBLISH" = "build" ] ; then
python tools/www-generator.py --source-directory www/ \
python3 tools/www-generator.py --source-directory www/ \
--output-directory publish-docs/www/
rsync -a www/static/ publish-docs/www/
# publish-docs/www-index.html is the trigger for openstack-indexpage
@ -35,7 +35,7 @@ if [ "$PUBLISH" = "build" ] ; then
mv publish-docs/www/www-index.html publish-docs/www-index.html
fi
if [ "$PUBLISH" = "publish" ] ; then
python tools/www-generator.py --source-directory www/ \
python3 tools/www-generator.py --source-directory www/ \
--output-directory publish-docs
rsync -a www/static/ publish-docs/
# Don't publish these files

View File

@ -4,7 +4,7 @@ envlist = linters,checkbuild
skipsdist = True
[testenv]
basepython=python2.7
basepython=python3
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt