Browse Source

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
changes/13/631313/1
Ben Nemec 1 year ago
parent
commit
cd32029388
7 changed files with 23 additions and 16 deletions
  1. +1
    -0
      .gitignore
  2. +3
    -0
      .stestr.conf
  3. +0
    -4
      .testr.conf
  4. +2
    -2
      doc/source/deploy/quintupleo.rst
  5. +0
    -5
      doc/source/index.rst
  6. +1
    -1
      test-requirements.txt
  7. +16
    -4
      tox.ini

+ 1
- 0
.gitignore View File

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

+ 3
- 0
.stestr.conf View File

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

+ 0
- 4
.testr.conf 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

+ 2
- 2
doc/source/deploy/quintupleo.rst 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


+ 0
- 5
doc/source/index.rst View File

@@ -17,11 +17,6 @@ Table of Contents
troubleshooting
api

Search
------

* :ref:`search`

Index
-----
* :ref:`genindex`


+ 1
- 1
test-requirements.txt 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



+ 16
- 4
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


Loading…
Cancel
Save