-
Notifications
You must be signed in to change notification settings - Fork 72
/
tox.ini
88 lines (77 loc) · 1.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# testing-running tool
# to use a local index, run as:
# tox -i http://localhost:3141/root/pypi
# Some notes on versions of Twisted:
# wheezy: 12.0.0-1
# wheezy-backports: 13.2.0-1~bpo70+1
# jessie: 14.0.2-3
# jessie-backports: 16.2.0-1~bpo8+1
# stretch: 16.3.0-1
[tox]
envlist = clean,flake8,stats,readme_render,{py36,py37,py38,py39,pypy}-{tx18,tx19,tx20,tx21,tx22,tx23,tx24},{py36,py37,py38,py39}-tx21,{py310,py311}-tx22
# if you're not using detox, you can use this list to get
# "all environments" coverage stats:
# tox -e 'clean,flake8,py39-tx20,pypy-tx20,py35-tx20,stats'
# defaults
[testenv]
setenv =
PYTHONPATH={toxinidir}
allowlist_externals =
mkdir
commands=
python --version
coverage run --append {envbindir}/trial ./test
# below is what coverals default GHA tool expects
mkdir -p ./coverage
coverage-lcov --output_file_path ./coverage/lcov.info
deps=
ipaddress
zope.interface>=3.6.1
setuptools>=0.8.0
automat
## XXX this doesn't work on github-actions
## GeoIP
# lcov 0.2.5 incompatible with newer coverage
coverage < 7.0.0
coverage-lcov
toml # needed by above, but that doesn't declare it??
cryptography
tx18: twisted>=18.0.0,<19.0.0
tx19: twisted>=19.0.0,<20.0.0
tx20: twisted>=20.0.0,<21.0.0
tx21: twisted>=21.0.0,<22.0.0
tx22: twisted>=22.0.0,<23.0.0
tx23: twisted>=23.0.0,<24.0.0
tx24: twisted>=24.0.0,<25.0.0
# [gh-actions]
# python =
# 3.5: py35
# 3.6: py36
# 3.7: py37
# 3.8: py38
# 3.9: py39
[testenv:clean]
deps=
coverage
commands=
coverage erase
# specific environments
[testenv:stats]
deps=
coverage
cuvner
commands=
coverage report
cuv graph
[testenv:flake8]
basepython=python3
deps=
flake8
commands=
flake8 --ignore=E501,W504,E402 txtorcon test examples/
[testenv:readme_render]
basepython=python3
deps=
readme_renderer
commands=
python setup.py check -r -s