Remove Python 2 dependency from docs build
Change-Id: I0b7676caa3ef836d03d9620ae55bea1fdda72d6a
This commit is contained in:
parent
a5ed752a6f
commit
9863413692
|
@ -20,8 +20,7 @@
|
||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import subprocess
|
import os
|
||||||
# import sys
|
|
||||||
|
|
||||||
import openstackdocstheme
|
import openstackdocstheme
|
||||||
|
|
||||||
|
@ -76,9 +75,8 @@ release = '1.0.0'
|
||||||
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
||||||
# These variables are passed to the logabug code via html_context.
|
# These variables are passed to the logabug code via html_context.
|
||||||
giturl = u'https://git.openstack.org/cgit/openstack/i18n/tree/doc/source'
|
giturl = u'https://git.openstack.org/cgit/openstack/i18n/tree/doc/source'
|
||||||
git_cmd = ["/usr/bin/git", "rev-parse", "HEAD"]
|
git_cmd = "/usr/bin/git rev-parse HEAD"
|
||||||
gitsha = subprocess.Popen(
|
gitsha = os.popen(git_cmd).read().strip()
|
||||||
git_cmd, stdout=subprocess.PIPE).communicate()[0].strip('\n')
|
|
||||||
html_context = {
|
html_context = {
|
||||||
"bug_project": 'openstack-i18n',
|
"bug_project": 'openstack-i18n',
|
||||||
"bug_tag": u'i18n-contributor-guide',
|
"bug_tag": u'i18n-contributor-guide',
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -14,7 +14,6 @@ deps = -r{toxinidir}/requirements.txt
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python2
|
|
||||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
|
|
Loading…
Reference in New Issue