forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
279 lines (264 loc) · 11 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# the tox file specifies a way of running our test suite
# against different combinations of libraries and python
# versions.
[tox]
# Our various test environments. The py*-all tasks will run the core
# library tests and all contrib tests with the latest library versions.
# The others will test specific versions of libraries.
#
# FIXME[gabin]:
# If the env name is longer than 128 characters (linux kernel limit specified
# in "master/include/linux/binfmts.h"), we'll get a "bad interpreter: No such file or directory" error.
#
#See linux kernel limitation:
# - https://github.com/torvalds/linux/blob/master/include/linux/binfmts.h#L12
#
#See related github topic:
# - https://github.com/pypa/virtualenv/issues/596
envlist =
wait
{py27,py35,py36,py37,py38,py39,py310}-profile{,-gevent}
{py27,py35,py36,py37,py38,py39,py310}-profile-minreqs{,-gevent}
py{37,38,39,310}-profile-protobuf319
# Integrations environments
algoliasearch_contrib-py{27,35,36,37,38,39,310}-algoliasearch{1,2,}
asyncio_contrib-py{35,36,37,38,39,310}
bottle_contrib{,_autopatch}-py{27,35,36,37,38,39}-bottle{11,12,}-webtest
bottle_contrib{,_autopatch}-py{310}-bottle-webtest
consul_contrib-py{27,35,36,37,38,39,310}-consul{07,10,11,}
dbapi_contrib-py{27,35,36,37,38,39,310}
dogpile_contrib-py{27,35}-dogpilecache{06,07,08,09}
dogpile_contrib-py{36,37,38,39,310}-dogpilecache{06,07,08,09,10,}
futures_contrib-py27-futures{30,31,32,}
futures_contrib-py{35,36,37,38,39,310}
gevent_contrib-py27-gevent{11,12,13}-sslmodules
gevent_contrib-py{35,36}-gevent{11,12,13}-sslmodules3-sslmodules
gevent_contrib-py{37,38}-gevent{13,14}-sslmodules3-sslmodules
gevent_contrib-py{39}-gevent{209,2012,211}-sslmodules3-sslmodules
gevent_contrib-py{310}-gevent{218}-sslmodules3-sslmodules
kombu_contrib-py{27,35,36}-kombu{40,41,42,43,44,45,46,}
# Kombu >= 4.2 only supports Python 3.7+
kombu_contrib-py{37,38,39}-kombu{42,43,44,45,46,}
kombu_contrib-py{310}-kombu{43,44,45,46,}
molten_contrib-py{36,37,38,39,310}-molten{06,07,10,}
mysqldb_contrib-py{27,35,36,37,38,39}-mysqlclient{13,14,}
mysqldb_contrib-py{310}-mysqlclient{14,}
pylibmc_contrib-py{27,35,36,37,38,39,310}-pylibmc{140,150,}
pylons_contrib-py27-pylons{096,097,010,10,}
pymongo_contrib-py{27,35,36,37}-pymongo{30,31,32,33,34,35,36,37,38,39,310,}-mongoengine
# pymongo does not yet support Python 3.8: https://github.com/pymssql/pymssql/issues/586
# but these tests still work.
pymongo_contrib-py{38,39,310}-pymongo{30,31,32,33,35,36,37,38,39,310,}-mongoengine
pynamodb_contrib-py{27,35,36,37,38,39,310}-pynamodb{40,41,42,43,}-moto1
pyodbc_contrib-py{27,35,36,37,38,39}-pyodbc{3,4}
requests_contrib{,_autopatch}-py{27,35,36,37,38,39,310}-requests{208,209,210,211,212,213,219}
sqlite3_contrib-py{27,35,36,37,38,39,310}-sqlite3
tornado_contrib-py{27,35,36,37,38,39}-tornado{44,45}
tornado_contrib-py{37,38,39}-tornado{50,51,60,}
tornado_contrib-py{310}-tornado{60,}
tornado_contrib-py27-tornado{44,45}-futures{30,31,32,}
vertica_contrib-py{27,35,36,37,38,39}-vertica{060,070}
# Opentracer
py{27,35,36,37,38,39,310}-opentracer
py{35,36,37,38,39,310}-opentracer_asyncio
py{35,36,37,38,39,310}-opentracer_tornado-tornado{44,45,50,60,}
py{27,35,36}-opentracer_gevent-gevent{11,12}
py{37,38}-opentracer_gevent-gevent{13,14}
py{39,310}-opentracer_gevent-gevent{209,2012,211}
isolated_build = true
requires = virtualenv<=20.2.1
[testenv:gevent_contrib-py{37,38}-gevent{13,14}-sslmodules3-sslmodules]
# Wheels for gevent segfault pretty easily
install_command=python -m pip install --no-binary=gevent {opts} {packages}
usedevelop = true
[testenv:py{37,38}-opentracer_gevent-gevent{13,14}]
# Wheels for gevent segfault pretty easily
install_command=python -m pip install --no-binary=gevent {opts} {packages}
usedevelop = true
[testenv:py{37,38}-profile-minreqs-gevent]
# Wheels for gevent segfault pretty easily
install_command=python -m pip install --no-binary=gevent {opts} {packages}
usedevelop = true
[testenv]
install_command=python -m pip install {opts} {packages}
usedevelop = true
setenv =
DD_TESTING_RAISE=1
profile-gevent: DD_PROFILE_TEST_GEVENT=1
bottle_contrib_autopatch: DD_SERVICE=bottle-app
extras =
profile: profiling
deps =
cython<=0.29.32
cmake
ninja
pytest-cov
pytest-mock
opentracing
# test dependencies installed in all envs
mock
hypothesis
# used to test our custom msgpack encoder
profile: pytest-benchmark
py{35,36,37,38,39,310}-profile: pytest-asyncio
py{27,35,36,37,38,39}-profile: uwsgi; sys_platform != 'win32'
py{27,35,36,37,38,39}-profile-minreqs: protobuf==3.0.0
py310-profile-minreqs: protobuf==3.8.0
profile-minreqs: tenacity==5.0.1
profile-!minreqs-gevent: gevent
py27-profile-minreqs-gevent: gevent==1.1.0
py{35,36,37,38}-profile-minreqs-gevent: gevent==1.4.0
py39-profile-minreqs-gevent: gevent==20.6.1; sys_platform != 'win32'
py39-profile-minreqs-gevent: gevent==21.1.2; sys_platform == 'win32'
py39-profile-minreqs-gevent: greenlet==0.4.16; sys_platform != 'win32'
py39-profile-minreqs-gevent: greenlet==0.4.17; sys_platform == 'win32'
py310-profile-minreqs-gevent: gevent==21.8.0
py310-profile-minreqs-gevent: greenlet==1.1.0
py{37,38,39,310}-profile-protobuf319: protobuf<3.19
# backports
py27: enum34
# integrations
algoliasearch: algoliasearch
algoliasearch1: algoliasearch>=1.2,<2
algoliasearch2: algoliasearch>=2,<3
blinker: blinker
bottle: bottle
bottle11: bottle>=0.11,<0.12
bottle12: bottle>=0.12,<0.13
consul: python-consul
consul07: python-consul>=0.7,<1.0
consul10: python-consul>=1.0,<1.1
consul11: python-consul>=1.1,<1.2
# decorator 5 dropped support for Python 2
dogpile_contrib-py27: decorator<5
dogpilecache: dogpile.cache
dogpilecache06: dogpile.cache==0.6.*
dogpilecache07: dogpile.cache==0.7.*
dogpilecache08: dogpile.cache==0.8.*
dogpilecache09: dogpile.cache==0.9.*
dogpilecache10: dogpile.cache==1.0.*
futures: futures
futures30: futures>=3.0,<3.1
futures31: futures>=3.1,<3.2
futures32: futures>=3.2,<3.3
gevent11: gevent>=1.1,<1.2
gevent12: gevent>=1.2,<1.3
gevent13: gevent>=1.3,<1.4
gevent14: gevent>=1.4,<1.5
gevent209: gevent>=20.9,<20.10
gevent2012: gevent>=20.12,<20.13
gevent211: gevent>=21.1,<21.2
gevent218: gevent>=21.8,<21.9
kombu: kombu
kombu40: kombu>=4.0,<4.1
kombu41: kombu>=4.1,<4.2
kombu42: kombu>=4.2,<4.3
kombu43: kombu>=4.3,<4.4
kombu44: kombu>=4.4,<4.5
kombu45: kombu>=4.5,<4.6
kombu46: kombu>=4.6,<4.7
memcached: python-memcached
moto: moto
moto1: moto>=1,<2
molten: molten
molten06: molten>=0.6,<0.7
molten07: molten>=0.7,<0.8
molten10: molten>=1.0,<1.1
mongoengine: mongoengine
mysqlclient: mysqlclient
mysqlclient13: mysqlclient>=1.3,<1.4
mysqlclient14: mysqlclient>=1.4,<1.5
pylibmc: pylibmc
pylibmc140: pylibmc>=1.4,<1.5
pylibmc150: pylibmc>=1.5,<1.6
pylibmc160: pylibmc>=1.6,<1.7
# webob is required for Pylons < 1.0
pylons: pylons
# decorator 5 dropped support for Python 2
pylons_contrib: decorator<5
pylons096: pylons>=0.9.6,<0.9.7
pylons096: webob<1.1
pylons097: pylons>=0.9.7,<0.9.8
pylons097: webob<1.1
pylons010: pylons>=0.10,<0.11
pylons010: webob<1.1
pylons10: pylons>=1.0,<1.1
pyodbc: pyodbc
pyodbc4: pyodbc>=4.0,<5.0
pyodbc3: pyodbc>=3.0,<4.0
pytest: pytest>=3
pytest3: pytest>=3.0,<4.0
redis: redis
redis210: redis>=2.10,<2.11
sqlalchemy: sqlalchemy
sslmodules3: aiohttp
# 2.3.2 included `tests` module in the distribution, pin to 2.3.1 until this issue is resolved
# https://github.com/aio-libs/aiobotocore/issues/937
sslmodules3: aiobotocore<=2.3.1
sslmodules: botocore
sslmodules: requests
sslmodules: elasticsearch
sslmodules: pynamodb
tornado: tornado
tornado44: tornado>=4.4,<4.5
tornado45: tornado>=4.5,<4.6
tornado50: tornado>=5.0,<5.1
tornado51: tornado>=5.1,<5.2
tornado60: tornado>=6.0,<6.1
vertica060: vertica-python>=0.6.0,<0.7.0
vertica070: vertica-python>=0.7.0,<0.8.0
webtest: WebTest
asyncio_contrib: pytest-asyncio
opentracer_asyncio: pytest-asyncio
aiobotocore_contrib: pytest-asyncio
# pass along test env variables
passenv=
TEST_*
# https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
CI
CI_*
CIRCLECI
CIRCLE_*
DD_TRACE_AGENT_URL
commands =
# run only essential tests related to the tracing client
tracer: python -m pytest {posargs} tests/tracer
py27-profile: python -m tests.profiling.run pytest --capture=no --verbose --benchmark-disable --ignore-glob="*asyncio*" {posargs} tests/profiling
# Coverage is excluded from profile because of an issue with Python 3.5.
py3{5,6,7,8,9,10}-profile: python -m tests.profiling.run pytest --no-cov --capture=no --verbose --benchmark-disable {posargs} tests/profiling
# run only the opentrace tests
opentracer: python -m pytest {posargs} tests/opentracer/core
opentracer_asyncio: python -m pytest {posargs} tests/opentracer/test_tracer_asyncio.py
opentracer_tornado-tornado{40,41,42,43,44}: python -m pytest {posargs} tests/opentracer/test_tracer_tornado.py
opentracer_gevent: python -m pytest {posargs} tests/opentracer/test_tracer_gevent.py
# Contribs
algoliasearch_contrib: python -m pytest {posargs} tests/contrib/algoliasearch
asyncio_contrib: python -m pytest {posargs} tests/contrib/asyncio
bottle_contrib: python -m pytest {posargs} --ignore="tests/contrib/bottle/test_autopatch.py" tests/contrib/bottle/
bottle_contrib_autopatch: python tests/ddtrace_run.py pytest {posargs} tests/contrib/bottle/test_autopatch.py
consul_contrib: python -m pytest {posargs} tests/contrib/consul
dbapi_contrib: python -m pytest {posargs} tests/contrib/dbapi
dogpile_contrib: python -m pytest {posargs} tests/contrib/dogpile_cache
futures_contrib: python -m pytest {posargs} tests/contrib/futures
gevent_contrib: python -m pytest {posargs} tests/contrib/gevent
molten_contrib: python -m pytest {posargs} tests/contrib/molten
mysql_contrib: python -m pytest {posargs} tests/contrib/mysql
mysqldb_contrib: python -m pytest {posargs} tests/contrib/mysqldb
pylibmc_contrib: python -m pytest {posargs} tests/contrib/pylibmc
pylons_contrib: python -m pytest {posargs} tests/contrib/pylons
pyodbc_contrib: python -m pytest {posargs} tests/contrib/pyodbc
kombu_contrib: python -m pytest {posargs} tests/contrib/kombu
sqlite3_contrib: python -m pytest {posargs} tests/contrib/sqlite3
tornado_contrib: python -m pytest {posargs} tests/contrib/tornado
vertica_contrib: python -m pytest {posargs} tests/contrib/vertica/
[testenv:wait]
skip_install=true
commands=python tests/wait-for-services.py {posargs}
basepython=python
deps=
psycopg2
mysql-connector-python!=8.0.18
vertica-python>=0.6.0,<0.7.0
kombu>=4.2.0,<4.3.0
# this is somewhat flaky (can fail and still be up) so try the tests anyway
ignore_outcome=true