commit | author | age
|
69e0ec
|
1 |
[tox] |
a9282d
|
2 |
envlist = |
2ec353
|
3 |
lint, |
e259f1
|
4 |
py27,py34,py35,py36,py37,py38,pypy,pypy3, |
2ec353
|
5 |
docs,{py2,py3}-cover,coverage, |
0c4c9f
|
6 |
|
69e0ec
|
7 |
[testenv] |
a9282d
|
8 |
# Most of these are defaults but if you specify any you can't fall back |
MM |
9 |
# to defaults for others. |
|
10 |
basepython = |
|
11 |
py27: python2.7 |
|
12 |
py34: python3.4 |
cc9126
|
13 |
py35: python3.5 |
1941d2
|
14 |
py36: python3.6 |
568ce3
|
15 |
py37: python3.7 |
e259f1
|
16 |
py38: python3.8 |
a9282d
|
17 |
pypy: pypy |
fa9992
|
18 |
pypy3: pypy3 |
a9282d
|
19 |
py2: python2.7 |
601393
|
20 |
py3: python3.5 |
b555e9
|
21 |
|
a9282d
|
22 |
commands = |
MM |
23 |
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:} |
0760eb
|
24 |
|
MM |
25 |
extras = |
|
26 |
testing |
109b2a
|
27 |
|
aa1c9b
|
28 |
[testenv:py27-scaffolds] |
4cd6cb
|
29 |
basepython = python2.7 |
aa1c9b
|
30 |
commands = |
CM |
31 |
python pyramid/scaffolds/tests.py |
|
32 |
deps = virtualenv |
|
33 |
|
|
34 |
[testenv:py34-scaffolds] |
468054
|
35 |
basepython = python3.4 |
109b2a
|
36 |
commands = |
CM |
37 |
python pyramid/scaffolds/tests.py |
|
38 |
deps = virtualenv |
|
39 |
|
aa52c5
|
40 |
[testenv:py35-scaffolds] |
MM |
41 |
basepython = python3.5 |
|
42 |
commands = |
|
43 |
python pyramid/scaffolds/tests.py |
|
44 |
deps = virtualenv |
|
45 |
|
0844c6
|
46 |
[testenv:py36-scaffolds] |
MM |
47 |
basepython = python3.6 |
|
48 |
commands = |
|
49 |
python pyramid/scaffolds/tests.py |
|
50 |
deps = virtualenv |
|
51 |
|
e259f1
|
52 |
[testenv:py37-scaffolds] |
SP |
53 |
basepython = python3.7 |
|
54 |
commands = |
|
55 |
python pyramid/scaffolds/tests.py |
|
56 |
deps = virtualenv |
|
57 |
|
109b2a
|
58 |
[testenv:pypy-scaffolds] |
CM |
59 |
basepython = pypy |
|
60 |
commands = |
|
61 |
python pyramid/scaffolds/tests.py |
|
62 |
deps = virtualenv |
b47e90
|
63 |
|
2ec353
|
64 |
[testenv:lint] |
17e3ab
|
65 |
skip_install = true |
a708d3
|
66 |
basepython = python3.5 |
b47e90
|
67 |
commands = |
MM |
68 |
flake8 pyramid/ |
e42ba5
|
69 |
python setup.py check -r -s -m |
MM |
70 |
check-manifest |
|
71 |
deps = |
2ec353
|
72 |
flake8 |
e42ba5
|
73 |
readme_renderer |
MM |
74 |
check-manifest |
|
75 |
|
a708d3
|
76 |
[testenv:docs] |
964e30
|
77 |
# pin to 3.5 to match what RTD uses |
a708d3
|
78 |
basepython = python3.5 |
MM |
79 |
whitelist_externals = make |
|
80 |
commands = |
0fec6d
|
81 |
make -C docs doctest html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E" |
0760eb
|
82 |
extras = |
MM |
83 |
docs |
a708d3
|
84 |
|
9cd1d1
|
85 |
[testenv:pdf] |
SP |
86 |
basepython = python3.5 |
|
87 |
whitelist_externals = make |
|
88 |
commands = |
|
89 |
make -C docs latexpdf BUILDDIR={envdir} "SPHINXOPTS=-W -E" |
0760eb
|
90 |
extras = |
MM |
91 |
docs |
9cd1d1
|
92 |
|
a708d3
|
93 |
# we separate coverage into its own testenv because a) "last run wins" wrt |
MM |
94 |
# cobertura jenkins reporting and b) pypy and jython can't handle any |
|
95 |
# combination of versions of coverage and nosexcover that i can find. |
|
96 |
[testenv:py2-cover] |
|
97 |
commands = |
2e7a9a
|
98 |
coverage run {envbindir}/nosetests |
a708d3
|
99 |
coverage xml -o coverage-py2.xml |
MM |
100 |
setenv = |
|
101 |
COVERAGE_FILE=.coverage.py2 |
0760eb
|
102 |
extras = |
MM |
103 |
testing |
a708d3
|
104 |
|
MM |
105 |
[testenv:py3-cover] |
|
106 |
commands = |
2e7a9a
|
107 |
coverage run {envbindir}/nosetests |
a708d3
|
108 |
coverage xml -o coverage-py3.xml |
MM |
109 |
setenv = |
|
110 |
COVERAGE_FILE=.coverage.py3 |
0760eb
|
111 |
extras = |
MM |
112 |
testing |
a708d3
|
113 |
|
MM |
114 |
[testenv:coverage] |
17e3ab
|
115 |
skip_install = true |
a708d3
|
116 |
basepython = python3.5 |
MM |
117 |
commands = |
|
118 |
coverage erase |
|
119 |
coverage combine |
|
120 |
coverage xml |
2e7a9a
|
121 |
coverage report --fail-under=100 |
a708d3
|
122 |
deps = |
MM |
123 |
coverage |
|
124 |
setenv = |
|
125 |
COVERAGE_FILE=.coverage |
17e3ab
|
126 |
|
MM |
127 |
[testenv:build] |
|
128 |
skip_install = true |
|
129 |
basepython = python3.6 |
|
130 |
commands = |
|
131 |
# clean up build/ and dist/ folders |
|
132 |
python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)' |
|
133 |
python setup.py clean --all |
|
134 |
# build sdist |
|
135 |
python setup.py sdist --dist-dir {toxinidir}/dist |
|
136 |
# build wheel from sdist |
|
137 |
pip wheel -v --no-deps --no-index --wheel-dir {toxinidir}/dist --find-links {toxinidir}/dist pyramid |
|
138 |
|
|
139 |
deps = |
|
140 |
setuptools |
|
141 |
wheel |