-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathtox.ini
60 lines (51 loc) · 1.25 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
[tox]
envlist =
{pypy,py27,py35,py36,py37}-twisted_lowest,
{pypy,pypy3,py27,py35,py36,py37,py38}-twisted_latest,
{pypy3,py35,py36,py37,py38}-twisted_trunk-pyopenssl_trunk,
towncrier, twine, check-manifest, flake8, docs
[testenv]
extras = dev
deps =
coverage
mock
!py37-twisted_lowest: Twisted==16.4.0
py37-twisted_lowest: Twisted==18.7.0
twisted_latest: Twisted
twisted_trunk: https://github.com/twisted/twisted/archive/trunk.zip
pyopenssl_trunk: https://github.com/pyca/pyopenssl/archive/master.zip
docs: Sphinx>=1.4.8
setenv =
# Avoid unnecessary network access when creating virtualenvs for speed.
VIRTUALENV_NO_DOWNLOAD=1
PIP_DISABLE_PIP_VERSION_CHECK=1
passenv = TERM # ensure colors
commands =
pip list
coverage run {envbindir}/trial {posargs:treq}
coverage report -m
[testenv:flake8]
skip_install = True
deps = flake8
commands = flake8 src/treq/
[testenv:towncrier]
python = python3
deps =
towncrier
commands =
towncrier {posargs:--draft}
[testenv:twine]
python = python3
deps =
twine
commands =
twine check {distdir}/*.*
[testenv:check-manifest]
deps =
check-manifest
commands =
check-manifest
[testenv:docs]
changedir = docs
commands =
sphinx-build -b html . html