[tox]
envlist = py37,py36,pep8

[testenv]
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
basepython = python3
setenv = PYTHONDONTWRITEBYTECODE=1
commands =
    coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
    coverage report -m --fail-under 90

[testenv:venv]
commands = {posargs}

[testenv:pep8]
commands =
    flake8 dracclient
    doc8 README.rst CONTRIBUTING.rst doc/source

[testenv:docs]
deps =
  -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/doc/requirements.txt
commands =
  sphinx-build -b html doc/source doc/build/html

[flake8]
max-complexity=15
show-source = True

[tox]
minversion = 3.1.0
envlist = py38,py36,pep8
ignore_basepython_conflict=true

[testenv]
usedevelop = True
install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
basepython = python3
setenv = PYTHONDONTWRITEBYTECODE=1
commands =
    coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
    coverage report -m --fail-under 90

[testenv:venv]
commands = {posargs}

[testenv:pep8]
commands =
    flake8 dracclient
    doc8 README.rst CONTRIBUTING.rst doc/source

[testenv:docs]
deps =
  -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/doc/requirements.txt
commands =
  sphinx-build -b html doc/source doc/build/html

[flake8]
max-complexity=15
show-source = True

Update python versions for unit tests
Update python versions for unit tests

This patch updates py37 to py38 in the default unit test environments.

Change-Id: I776ae5c2ecf2d356959fd8ffbb5296c3b044edaf
