Switch from oslosphinx to openstackdocstheme
That's what the OpenStack community is using today. Also with newer
Sphinx versions, the current approach does no longer build.
Re-add docs and requirements tests.
Switch to xena standard jobs.
Conflicts:
doc/requirements.txt
requirements.txt
scciclient/tests/irmc/test_elcm.py
scciclient/tests/irmc/test_ipmi.py
scciclient/tests/irmc/test_scci.py
scciclient/tests/irmc/test_snmp.py
scciclient/tests/irmc/viom/test_client.py
scciclient/tests/irmc/viom/test_elcm.py
test-requirements.txt
Change-Id: I3f93a400bb83f4a91bd77ebe69f609949cd43ca7
(cherry picked from commit 21a184bff2)
(cherry picked from commit f6fc6cf1a6)
(cherry picked from commit c06de62f36)
69 lines
1.7 KiB
INI
69 lines
1.7 KiB
INI
[tox]
|
|
minversion = 3.9.0
|
|
envlist = py3,py27,pep8
|
|
skipsdist = True
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps =
|
|
hacking>=3.1.0,<4.0.0 # Apache-2.0
|
|
doc8>=0.6.0 # Apache-2.0
|
|
flake8-import-order>=0.17.1 # LGPLv3
|
|
pycodestyle>=2.0.0,<2.7.0 # MIT
|
|
Pygments>=2.2.0 # BSD
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:py27]
|
|
deps =
|
|
-c{toxinidir}/py27-constraints.txt
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:cover]
|
|
basepython = python3
|
|
setenv =
|
|
PYTHON=coverage run --source scciclient --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -b html doc/source doc/build/html
|
|
|
|
[flake8]
|
|
ignore = W503,W504,W605
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
|
# [H106] Don't put vim configuration in source files.
|
|
# [H203] Use assertIs(Not)None to check for None.
|
|
# [H204] Use assert(Not)Equal to check for equality.
|
|
# [H205] Use assert(Greater|Less)(Equal) for comparison.
|
|
# [H904] Delay string interpolations at logging calls.
|
|
enable-extensions=H106,H203,H204,H205,H904
|
|
filename = *.py
|
|
import-order-style = pep8
|
|
application-import-names = scciclient
|