Stop using setup.py [test|testr|build_sphinx]

These are all deprecated. For unit testing stestr should be used
directly, and for doc builds sphinx-build should be used directly.

A couple of minor doc changes were needed to eliminate warnings.

Change-Id: Ic2e1b9d692c9b5866f888fb4c8c08bf95742764e
This commit is contained in:
Ben Nemec 2019-01-16 13:09:55 -06:00
parent 9e7ee5dd5c
commit cd32029388
7 changed files with 23 additions and 16 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ cover
doc/build
AUTHORS
ChangeLog
.stestr/

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./openstack_virtual_baremetal/tests}
top_path=./

View File

@ -1,4 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./openstack_virtual_baremetal ./openstack_virtual_baremetal $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -79,8 +79,8 @@ however.
that lists which BMC address corresponds to a given baremetal
instance.
Deleting an OVB Environment
---------------------------
Deleting a QuintupleO Environment
---------------------------------
All of the OpenStack resources created by OVB are part of the Heat stack, so
to delete the environment just delete the Heat stack. There are a few local

View File

@ -17,11 +17,6 @@ Table of Contents
troubleshooting
api
Search
------
* :ref:`search`
Index
-----
* :ref:`genindex`

View File

@ -2,7 +2,7 @@ coverage>=3.6
discover
fixtures>=0.3.14
python-subunit>=0.0.18
testrepository>=0.0.18
stestr
testtools>=0.9.36,!=1.2.0
mock>=1.0

20
tox.ini
View File

@ -5,23 +5,35 @@ envlist = py36,py27,pep8
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
OS_LOG_CAPTURE=1
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = stestr run {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:pep8]
deps = flake8
commands = flake8
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=openstack_virtual_baremetal --testr-args='{posargs}'
basepython = python3
setenv =
PYTHON=coverage run --source openstack_virtual_baremetal --parallel-mode
commands =
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:genconfig]
commands = python bin/environment-generator.py sample-env-generator --index doc/source/deploy/environment-index.rst