[ussuri][goal] Drop python 2.7 support

OpenStack is dropping the py2.7 support in ussuri cycle.

specs repo either has py27 job or requirement or tox env.

Update requirements for Sphinx that works with python3, this needs
updating from oslosphinx to openstackdocstheme as well.

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I1a1bd69ef048ba3ccd0b8188742b9bbbc07f3bbc
This commit is contained in:
Ghanshyam Mann 2019-12-13 18:48:18 +00:00 committed by Andreas Jaeger
parent 256c63a392
commit c23d1ce7e3
4 changed files with 15 additions and 8 deletions

View File

@ -3,7 +3,7 @@
- openstack-specs-jobs - openstack-specs-jobs
check: check:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-py37
gate: gate:
jobs: jobs:
- openstack-tox-py27 - openstack-tox-py37

View File

@ -24,7 +24,7 @@ sys.path.insert(0, os.path.abspath('../..'))
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
#'sphinx.ext.intersphinx', #'sphinx.ext.intersphinx',
'oslosphinx', 'openstackdocstheme',
'yasfb', 'yasfb',
] ]
@ -51,6 +51,11 @@ master_doc = 'index'
project = u'telemetry-specs' project = u'telemetry-specs'
copyright = u'%s, OpenStack Foundation' % datetime.date.today().year copyright = u'%s, OpenStack Foundation' % datetime.date.today().year
# openstackdocstheme options
repository_name = 'openstack/python-glanceclient'
use_storyboard = True
html_theme = 'openstackdocs'
# If true, '()' will be appended to :func: etc. cross-reference text. # If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True add_function_parentheses = True

View File

@ -1,6 +1,6 @@
oslosphinx pbr!=2.1.0,>=2.0.0 # Apache-2.0
pbr>=0.6,!=0.7,<1.0 sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.5 # BSD
sphinx>=1.1.2,<1.2 openstackdocstheme>=1.22
testrepository>=0.0.18 testrepository>=0.0.18
testtools>=0.9.34 testtools>=0.9.34
yasfb>=0.5.1 yasfb>=0.5.1

View File

@ -1,9 +1,11 @@
[tox] [tox]
minversion = 1.6 minversion = 3.1.1
envlist = docs,py27 envlist = docs,pep8
skipsdist = True skipsdist = True
ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3
usedevelop = True usedevelop = True
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages} install_command = pip install -U {opts} {packages}