forked from dpkp/kafka-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (39 loc) · 1009 Bytes
/
tox.ini
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
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist = py{26,27,34,35,36,py}, docs
[pytest]
testpaths = kafka test
doctest_optionflags = modules
addopts = --durations=10
log_format = %(created)f %(filename)-23s %(threadName)s %(message)s
[testenv]
deps =
pytest
pytest-cov
pytest-catchlog
py{27,34,35,36,py}: pylint==1.8.0
py{27,34,35,36,py}: pytest-pylint
pytest-sugar
pytest-mock
mock
python-snappy
lz4==0.11.1
xxhash
py26: unittest2
commands =
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka --cov-config=.covrc}
setenv =
PROJECT_ROOT = {toxinidir}
passenv = KAFKA_VERSION
[testenv:py26]
# pylint doesn't support python2.6
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
[testenv:pypy]
# pylint is super slow on pypy...
commands = py.test {posargs:--cov=kafka --cov-config=.covrc}
[testenv:docs]
deps =
sphinx_rtd_theme
sphinx
commands =
sphinx-apidoc -o docs/apidoc/ kafka/
sphinx-build -b html docs/ docs/_build