forked from confluentinc/confluent-kafka-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (50 loc) · 1.15 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist = flake8,py27,py34,py35,py36
[testenv]
setenv =
CPPFLAGS=-I{toxinidir}/tmp-build/include
LDFLAGS=-L{toxinidir}/tmp-build/lib
C_INCLUDE_PATH={toxinidir}/tmp-build/include
LD_LIBRARY_PATH={toxinidir}/tmp-build/lib
passenv =
#http://tox.readthedocs.io/en/latest/config.html#confval-passenv=SPACE-SEPARATED-GLOBNAMES
*
commands =
pip install -v .
py.test -v --timeout 20 --ignore=tmp-build --import-mode append {posargs}
# See tests/README.md for additional notes on testing
python tests/integration/integration_test.py
[base]
deps =
# https://docs.pytest.org/en/latest/changelog.html#id53
pytest==4.6.4
pytest-timeout
fastavro
requests
[testenv:py27]
deps =
{[base]deps}
avro
[testenv:py34]
deps =
{[base]deps}
avro-python3
[testenv:py35]
deps =
{[base]deps}
avro-python3
[testenv:py36]
deps =
{[base]deps}
avro-python3
[testenv:flake8]
deps = flake8
commands = flake8
[pytest]
python_files = test_*
testpaths = tests
ignore = tests/integration
[flake8]
exclude = venv*,env,.env,.tox,.toxenv,.git,build,docs,tmp-build
max-line-length = 119
accept-encodings = utf-8