forked from getsentry/raven-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
176 lines (156 loc) · 3.69 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
# core
py{27,33,34,35,36}
pypy
flake8
# contrib
{py35,py36}-django-dev-fix
{py35,py36}-django-{200}-fix
{py27,py35}-django-111-fix
{py27,py34,py35}-django-{18,19,110}
{py27,py33,py34,py35}-django-18
{py27,py33,py34}-django-17
py27-django-16
{py27,py35}-flask-{10,11}
py35-flask-12
py35-flask-dev
py27-celery-{3,4}
py{27,36}-lambda
py{35,36}-sanic-07
[testenv]
deps =
py27: gevent
py33: pytest<3.3.0
django-{16,17,18}: pytest-django<3.0
django-{19,110,110}: pytest-django>=3.0
django-{18,19,110}: django-tastypie==0.14
django-16: Django>=1.6,<1.7
django-17: Django>=1.7,<1.8
django-18: Django>=1.8,<1.9
django-19: Django>=1.9,<1.10
django-110: Django>=1.10,<1.11
django-111: Django>=1.11,<1.12
django-200: Django>=2.0,<2.1
django-dev: git+https://github.com/django/django.git#egg=Django
flask-10: Flask>=0.10,<0.11
flask-11: Flask>=0.11,<0.12
flask-12: Flask>=0.12,<0.13
flask-dev: git+https://github.com/pallets/flask.git#egg=flask
flask-dev: flask-login
celery-3: Celery>=3.1,<3.2
celery-4: Celery>=4.0,<4.1
sanic-07: sanic>=0.7,<0.8
sanic-07: aiohttp
fix: git+https://github.com/pytest-dev/pytest-django.git#egg=pytest_django
setenv =
PYTHONDONTWRITEBYTECODE=1
TESTPATH=tests
django: TESTPATH=tests/contrib/django
flask: TESTPATH=tests/contrib/flask
sanic: TESTPATH=tests/contrib/sanic
celery: TESTPATH=tests/contrib/test_celery.py
lambda: TESTPATH=tests/contrib/awslambda
usedevelop = true
extras = tests
basepython =
# py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
pypy: pypy
commands =
py.test {env:TESTPATH} {posargs} --max-slave-restart=4
[testenv:pypy]
commands:
pypy: py.test {env:TESTPATH} {posargs} -n0
# Linters
[testenv:flake8]
basepython = python3.5
skip_install = true
deps =
flake8
flake8-docstrings>=0.2.7
flake8-import-order>=0.9
commands =
flake8 raven/ setup.py
[testenv:pylint]
basepython = python3.5
skip_install = true
deps =
pyflakes
pylint
commands =
pylint raven/ setup.py
[testenv:doc8]
basepython = python3.5
skip_install = true
deps =
sphinx
doc8
commands =
doc8 docs/
[testenv:bandit]
basepython = python3.5
skip_install = true
deps =
bandit
commands =
bandit -r raven/ -c .bandit.yml
[testenv:linters]
basepython = python3.5
skip_install = true
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:doc8]deps}
{[testenv:readme]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:doc8]commands}
{[testenv:readme]commands}
{[testenv:bandit]commands}
[testenv:readme]
basepython = python3.5
deps =
readme_renderer
commands =
python setup.py check -r -s
# Release tooling
[testenv:build]
basepython = python3.5
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
[testenv:release]
basepython = python3.5
skip_install = true
deps =
bumpversion
commands =
bumpversion --tag --commit {posargs} release
[testenv:minor]
basepython = python3.5
skip_install = true
deps =
bumpversion
commands =
bumpversion --commit {posargs} minor
[testenv:dev]
basepython = python3.5
skip_install = true
deps =
bumpversion
commands =
bumpversion {posargs} --commit {posargs} patch