forked from Julian/venvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
124 lines (107 loc) · 3.16 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tox]
envlist =
pypy
pypy3
py27
py34
py35
py36
py37
readme
safety
style
pex
# docs-{html,doctest,linkcheck,spelling,style}
skipsdist = True
[testenv]
setenv =
changedir = {envtmpdir}
passenv = HYPOTHESIS_PROFILE
commands =
{envbindir}/pip install {toxinidir}
{envbindir}/trial {posargs:venvs}
{envpython} -m doctest {toxinidir}/README.rst
deps =
-r{toxinidir}/test-requirements.txt
twisted
coverage: coverage
[testenv:coverage]
basepython = pypy
setenv =
HYPOTHESIS_PROFILE=coverage
COVERAGE_FILE={envtmpdir}/coverage-data
commands =
{envbindir}/pip install {toxinidir}
{envbindir}/coverage run --rcfile={toxinidir}/.coveragerc {envbindir}/trial venvs
{envbindir}/coverage report --rcfile={toxinidir}/.coveragerc --show-missing
{envbindir}/coverage html --directory={envtmpdir}/htmlcov --rcfile={toxinidir}/.coveragerc {posargs}
[testenv:readme]
changedir = {toxinidir}
deps = readme_renderer
commands =
{envbindir}/python setup.py check --restructuredtext --strict
[testenv:safety]
deps = safety
commands =
{envbindir}/pip install {toxinidir}
{envbindir}/safety check
[testenv:style]
deps = ebb-lint
commands = flake8 {posargs} --max-complexity 10 {toxinidir}/venvs {toxinidir}/setup.py
[testenv:pex]
# https://github.com/pantsbuild/pex/issues/222
basepython = pypy
passenv = C_INCLUDE_PATH LDFLAGS
commands =
{envbindir}/pip download --no-binary ':all:' -r {toxinidir}/test-requirements.txt --dest {envtmpdir}/deps
{envbindir}/pex --disable-cache --no-use-wheel --no-pypi --find-links {envtmpdir}/deps {toxinidir} --entry-point venvs --output-file {toxinidir}/dist/venvs {posargs}
deps = pex
[testenv:docs-html]
basepython = pypy
changedir = docs
whitelist_externals = make
commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -T -W {posargs}' html
deps =
-r{toxinidir}/docs/requirements.txt
-e{toxinidir}[server]
[testenv:docs-doctest]
basepython = pypy
changedir = docs
whitelist_externals = make
commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -T -W {posargs}' doctest
deps =
-r{toxinidir}/docs/requirements.txt
-e{toxinidir}[server]
[testenv:docs-linkcheck]
basepython = pypy
changedir = docs
whitelist_externals = make
commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -T -W {posargs}' linkcheck
deps =
-r{toxinidir}/docs/requirements.txt
-e{toxinidir}[server]
[testenv:docs-spelling]
basepython = pypy
changedir = docs
whitelist_externals = make
commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -T -W {posargs}' spelling
deps =
-r{toxinidir}/docs/requirements.txt
-e{toxinidir}[server]
[testenv:docs-style]
basepython = pypy
changedir = docs
commands = doc8 {posargs} {toxinidir}/docs
deps =
-chttps://raw.githubusercontent.com/Magnetic/Requirements/master/constraints.txt
doc8
pygments
pygments-github-lexers
[doc8]
ignore-path =
version.txt,
.*/,
_*/
[travis]
python =
pypy: pypy, style