diff --git a/tools/publishdocs.sh b/tools/publishdocs.sh index 17b0cedad1..d6a2fc0d66 100755 --- a/tools/publishdocs.sh +++ b/tools/publishdocs.sh @@ -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 diff --git a/tox.ini b/tox.ini index e6f1ea568d..3e2f9f9fc8 100644 --- a/tox.ini +++ b/tox.ini @@ -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