collectd-openstack-plugins/tox.ini
loooosy af4ad84d24 Drop py34 target in tox.ini and setup.cfg
We support py35 now.We do not have python 3.4 in setup.cfg which declares the explicit
supported versions.so it is no need to keep the supoort for py34.

Change-Id: I1a66903b1ea1e0007ced37879d1c737c83fefd77
2017-04-11 20:29:32 +08:00

46 lines
1.1 KiB
INI

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 1.6
envlist = py35,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -r requirements.txt -U {opts} {packages}
commands = sh tools/pretty_tox.sh '{posargs}'
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = sh
setenv =
VIRTUAL_ENV={envdir}
[testenv:pep8]
commands = flake8 collectd_ceilometer
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:releasenotes]
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[pep8]
max-line-length = 80
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
max-line-length = 80
show-source = True
ignore = E123,E125,E241
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build