Files
manila-specs/tox.ini
Nguyen Hung Phuong 95cbd02299 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0690e900cb354727b786032fc456eed25a72c3b8
2018-07-03 14:45:29 +07:00

33 lines
764 B
INI

[tox]
minversion = 2.0
envlist = docs,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = echo
[testenv:pep8]
basepython = python3
commands =
flake8
doc8 --ignore D001 specs/
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
whitelist_externals = rm
commands =
rm -rf doc/build
sphinx-build -b html doc/source doc/build/html
# Ignore D001 since we allow lines in excess of 79 characters.
doc8 --ignore D001 --ignore-path .tox --ignore-path .eggs --ignore-path doc/build --ignore-path manila_specs.egg-info -e txt -e rst