Browse Source

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>
changes/93/578893/2
Doug Hellmann 3 years ago
parent
commit
4390a71381
  1. 4
      tools/publishdocs.sh
  2. 2
      tox.ini

4
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

2
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

Loading…
Cancel
Save