summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 0d9783b527e0a10ad5e77b2c5224af4d29f8b032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[tox]
minversion = 1.6
skipsdist = True
envlist =
    pep8,
    py27,
    py27-{gevent,eventlet,sasl},
    py34,
    py34-sasl,
    py35,
    py35-sasl,
    py36,
    py36-{sasl,docs},
    pypy

[testenv:pep8]
commands = flake8 {posargs}

[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
    VIRTUAL_ENV={envdir}
    ZOOKEEPER_VERSION={env:ZOOKEEPER_VERSION:}
deps = -r{toxinidir}/requirements.txt
    docs: -r{toxinidir}/requirements_sphinx.txt
    gevent: -r{toxinidir}/requirements_gevent.txt
    sasl: -r{toxinidir}/requirements_sasl.txt
    eventlet: -r{toxinidir}/requirements_eventlet.txt
commands = {toxinidir}/ensure-zookeeper-env.sh nosetests {posargs: -d -v --with-coverage kazoo.tests}

[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools,local,docs,zookeeper