Cleanup py27 support and docs
Make a few cleanups: - Remove obsolete sections from setup.cfg - Remove install_command from tox.ini, merge constraints into dependencies - Enable warnings for doc build, fix all warnings - Switch to sphinx-build - Enable warnings for doc build, fix all warnings - Remove git handling from conf.py, openstackdocstheme does this now Change-Id: If7918689c7101da044a38cbb66c6d9d09f8cc53f
This commit is contained in:
parent
9ce20edac5
commit
a9c4ac0a69
@ -15,8 +15,6 @@ import datetime
|
||||
import os
|
||||
import sys
|
||||
|
||||
import openstackdocstheme
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
@ -105,8 +103,6 @@ man_pages = []
|
||||
# a list of builtin themes.
|
||||
# html_theme = 'nature'
|
||||
html_theme = "openstackdocs"
|
||||
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
||||
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
@ -132,11 +128,6 @@ html_theme_options = {}
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1"
|
||||
html_last_updated_fmt = os.popen(git_cmd).read()
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
@ -1,6 +1,6 @@
|
||||
pbr>=1.8
|
||||
pbr>=2.0
|
||||
sphinx>=1.6.2
|
||||
testrepository>=0.0.18
|
||||
testtools>=0.9.34
|
||||
openstackdocstheme>=1.17.0 # Apache-2.0
|
||||
openstackdocstheme>=1.32.1 # Apache-2.0
|
||||
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
|
||||
|
11
setup.cfg
11
setup.cfg
@ -10,14 +10,3 @@ classifier =
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
|
||||
[build_sphinx]
|
||||
all_files = 1
|
||||
build-dir = doc/build
|
||||
source-dir = doc/source
|
||||
|
||||
[pbr]
|
||||
warnerrors = True
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
@ -216,14 +216,14 @@ Implementation
|
||||
==============
|
||||
|
||||
Assignee(s)
|
||||
-----------
|
||||
+++++++++++
|
||||
|
||||
Primary assignee:
|
||||
|
||||
peschk_l
|
||||
|
||||
Work Items
|
||||
----------
|
||||
++++++++++
|
||||
|
||||
* Create validation utils that will allow to check the datapoint/dataframe
|
||||
format.
|
||||
|
@ -71,7 +71,7 @@ The endpoint will support the following body parameters:
|
||||
Inside the body of the request, a collection of DataFrame json objects
|
||||
can be specified as follows:
|
||||
|
||||
.. code-block:: javascript
|
||||
.. code-block:: none
|
||||
|
||||
{
|
||||
"dataframes": [
|
||||
|
4
tox.ini
4
tox.ini
@ -8,14 +8,14 @@ ignore_basepython_conflict = True
|
||||
basepython = python3
|
||||
usedevelop = True
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
install_command = pip install -U {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
commands =
|
||||
sphinx-build -W -b html doc/source doc/build/html
|
||||
|
||||
[testenv:pdf-docs]
|
||||
envdir = {toxworkdir}/docs
|
||||
|
Loading…
Reference in New Issue
Block a user