forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
192 lines (152 loc) · 5.28 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# 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{2.7,3.4,3.5,3.6,3.7,3.8}
pypy
# === Integrations ===
# Formatting: 1 blank line between different integrations.
py3.7-django-{2.2,dev}
{py3.5,py3.6,py3.7}-django-{2.0,2.1}
{pypy,py2.7,py3.5}-django-1.11
{pypy,py2.7,py3.4,py3.5}-django-{1.8,1.9,1.10}
{pypy,py2.7,py3.4}-django-1.7
{pypy,py2.7}-django-1.6
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-flask-{1.1,1.0,0.11,0.12,dev}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-bottle-0.12
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-falcon-1.4
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-falcon-2.0
{py3.5,py3.6,py3.7}-sanic-{0.8,18}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-celery-{4.1,4.2,4.3}
{pypy,py2.7}-celery-3
# The aws_lambda tests deploy to the real AWS and have their own matrix of Python versions.
py3.7-aws_lambda
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-pyramid-{1.3,1.4,1.5,1.6,1.7,1.8,1.9,1.10}
{pypy,py2.7,py3.5,py3.6}-rq-{0.6,0.7,0.8,0.9,0.10,0.11}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-rq-{0.12,0.13,1.0}
py3.7-aiohttp-{3.5,3.6}
{py3.7,py3.8}-tornado-{5,6}
{py2.7,py3.7}-requests
{py2.7,py3.7}-redis
py3.7-asgi
[testenv]
deps =
-r test-requirements.txt
django-{1.11,2.0,2.1,2.2}: djangorestframework>=3.0.0,<4.0.0
py3.7-django-{1.11,2.0,2.1,2.2}: channels>2
py3.7-django-{1.11,2.0,2.1,2.2}: pytest-asyncio
django-{1.6,1.7,1.8}: pytest-django<3.0
django-{1.9,1.10,1.11,2.0,2.1,2.2,dev}: pytest-django>=3.0
django-1.6: Django>=1.6,<1.7
django-1.7: Django>=1.7,<1.8
django-1.8: Django>=1.8,<1.9
django-1.9: Django>=1.9,<1.10
django-1.10: Django>=1.10,<1.11
django-1.11: Django>=1.11,<1.12
django-2.0: Django>=2.0,<2.1
django-2.1: Django>=2.1,<2.2
django-2.2: Django>=2.2,<2.3
django-dev: git+https://github.com/django/django.git#egg=Django
flask: flask-login
flask-0.11: Flask>=0.11,<0.12
flask-0.12: Flask>=0.12,<0.13
flask-1.0: Flask>=1.0,<1.1
flask-1.1: Flask>=1.1,<1.2
flask-dev: git+https://github.com/pallets/flask.git#egg=flask
bottle-0.12: bottle>=0.12,<0.13
bottle-dev: git+https://github.com/bottlepy/bottle#egg=bottle
falcon-1.4: falcon>=1.4,<1.5
falcon-2.0: falcon>=2.0.0rc3,<3.0
sanic-0.8: sanic>=0.8,<0.9
sanic-18: sanic>=18.0,<19.0
{py3.5,py3.6}-sanic: aiocontextvars==0.2.1
sanic: aiohttp
celery-3: Celery>=3.1,<4.0
celery-4.1: Celery>=4.1,<4.2
celery-4.2: Celery>=4.2,<4.3
celery-4.3: Celery>=4.3,<4.4
requests: requests>=2.0
aws_lambda: boto3
pyramid-1.3: pyramid>=1.3,<1.4
pyramid-1.4: pyramid>=1.4,<1.5
pyramid-1.5: pyramid>=1.5,<1.6
pyramid-1.6: pyramid>=1.6,<1.7
pyramid-1.7: pyramid>=1.7,<1.8
pyramid-1.8: pyramid>=1.8,<1.9
pyramid-1.9: pyramid>=1.9,<1.10
pyramid-1.10: pyramid>=1.10,<1.11
rq-{0.6,0.7,0.8,0.9,0.10,0.11,0.12}: fakeredis<1.0
rq-{0.13,1.0}: fakeredis>=1.0
# fakeredis 1.0 is broken with redis 3.2
rq: redis<3.2.0
rq-0.6: rq>=0.6,<0.7
rq-0.7: rq>=0.7,<0.8
rq-0.8: rq>=0.8,<0.9
rq-0.9: rq>=0.9,<0.10
rq-0.10: rq>=0.10,<0.11
rq-0.11: rq>=0.11,<0.12
rq-0.12: rq>=0.12,<0.13
rq-0.13: rq>=0.13,<0.14
rq-1.0: rq>=1.0,<1.1
aiohttp-3.4: aiohttp>=3.4.0,<3.5.0
aiohttp-3.5: aiohttp>=3.5.0,<3.6.0
aiohttp: pytest-aiohttp
tornado-5: tornado>=5,<6
tornado-6: tornado>=6.0a1
redis: fakeredis
asgi: starlette
asgi: requests
linters: black
linters: flake8
linters: flake8-import-order
linters: mypy>=0.720
# https://github.com/PyCQA/flake8-bugbear/pull/77
linters: git+https://github.com/untitaker/flake8-bugbear#branch=fix/b901-yield-expr
setenv =
PYTHONDONTWRITEBYTECODE=1
TESTPATH=tests
django: TESTPATH=tests/integrations/django
flask: TESTPATH=tests/integrations/flask
bottle: TESTPATH=tests/integrations/bottle
falcon: TESTPATH=tests/integrations/falcon
celery: TESTPATH=tests/integrations/celery
requests: TESTPATH=tests/integrations/requests
aws_lambda: TESTPATH=tests/integrations/aws_lambda
sanic: TESTPATH=tests/integrations/sanic
pyramid: TESTPATH=tests/integrations/pyramid
rq: TESTPATH=tests/integrations/rq
aiohttp: TESTPATH=tests/integrations/aiohttp
tornado: TESTPATH=tests/integrations/tornado
redis: TESTPATH=tests/integrations/redis
asgi: TESTPATH=tests/integrations/asgi
COVERAGE_FILE=.coverage-{envname}
passenv =
SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID
SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY
SENTRY_PYTHON_TEST_AWS_IAM_ROLE
SENTRY_PYTHON_TEST_POSTGRES_USER
SENTRY_PYTHON_TEST_POSTGRES_NAME
usedevelop = True
extras =
flask: flask
bottle: bottle
falcon: falcon
basepython =
py2.7: python2.7
py3.4: python3.4
py3.5: python3.5
py3.6: python3.6
py3.7: python3.7
py3.8: python3.8
linters: python3
pypy: pypy
commands =
py.test {env:TESTPATH} {posargs}
[testenv:linters]
commands =
flake8 tests examples sentry_sdk
black --check tests examples sentry_sdk
mypy examples sentry_sdk