This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
546 lines (530 loc) · 22.8 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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
# 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}-profile{,-gevent}
{py27,py35,py36,py37,py38,py39}-profile-minreqs{,-gevent}
py{27,35,36,37,38,39}-integration-{v5,latest,snapshot}
py{27,35,36,37,38,39}-vendor
py{27,35,36,37,38,39}-ddtracerun
py{27,35,36,37,38,39}-test_logging
# Integrations environments
# aiobotocore dropped Python 3.5 support in 0.12
aiobotocore_contrib-{py35}-aiobotocore{02,03,04,05,07,08,09,010,011}
aiobotocore_contrib-{py36}-aiobotocore{02,03,04,05,07,08,09,010,011,012}
# aiobotocore 0.2 and 0.4 do not work because they use async as a reserved keyword
aiobotocore_contrib-py{37,38,39}-aiobotocore{03,05,07,08,09,010,011,012}
# Python 3.7 needs at least aiohttp 2.3
aiohttp_contrib-{py35,py36}-aiohttp{12,13,20,21,22}-aiohttp_jinja{012,013}-yarl-pytest3
aiohttp_contrib-{py35,py36,py37,py38}-aiohttp23-aiohttp_jinja015-yarl10-pytest3
aiohttp_contrib-{py35,py36,py37}-aiohttp{30,31,32,33,35,36}-aiohttp_jinja{015}-yarl10-pytest3
aiohttp_contrib-py38-aiohttp{30,31,32,33,36}-aiohttp_jinja015-yarl10-pytest3
aiopg_contrib-{py35,py36}-aiopg{012,015}
aiopg_contrib-py{37,38,39}-aiopg015
algoliasearch_contrib-py{27,35,36,37,38,39}-algoliasearch{1,2,}
asyncio_contrib-py{35,36,37,38,39}
bottle_contrib{,_autopatch}-py{27,35,36,37,38,39}-bottle{11,12,}-webtest
cassandra_contrib-py{27,35,36,37,38,39}-cassandra{35,36,37,38,315}
# Non-4.x celery should be able to use the older redis lib, since it locks to an older kombu
celery_contrib-py{27,35,36}-celery31-redis210
# 4.x celery bumps kombu to 4.4+, which requires redis 3.2 or later, this tests against
# older redis with an older kombu, and newer kombu/newer redis.
# https://github.com/celery/kombu/blob/3e60e6503a77b9b1a987cf7954659929abac9bac/Changelog#L35
celery_contrib-py{27,35,36}-celery{40,41}-{redis210-kombu43,redis32-kombu44}-pytest3
# Celery 4.2 is now limited to Kombu 4.3
# https://github.com/celery/celery/commit/1571d414461f01ae55be63a03e2adaa94dbcb15d
celery_contrib-py{27,35,36}-celery42-redis210-kombu43-pytest3
# Celery 4.3 wants Kombu >= 4.4 and Redis >= 3.2
# Python 3.7 needs Celery 4.3
celery_contrib-py{27,35,36,37,38,39}-celery43-redis32-kombu44
consul_contrib-py{27,35,36,37,38,39}-consul{07,10,11,}
dbapi_contrib-py{27,35,36,37,38,39}
dogpile_contrib-py{27,35}-dogpilecache{06,07,08,09}
dogpile_contrib-py{36,37,38,39}-dogpilecache{06,07,08,09,10,}
elasticsearch_contrib-{py27,py35,py36}-elasticsearch{16,17,18,23,24,51,52,53,54,63,64}
elasticsearch_contrib-{py27,py35,py36}-elasticsearch1{100}
elasticsearch_contrib-{py27,py35,py36}-elasticsearch2{50}
elasticsearch_contrib-{py27,py35,py36}-elasticsearch5{50}
elasticsearch_contrib-{py27,py35,py36}-elasticsearch6{40}
falcon_contrib{,_autopatch}-{py27,py35,py36,py37}-falcon{10,11,12,13,14}
falcon_contrib{,_autopatch}-{py35,py36,py37}-falcon{20}
flask_contrib{,_autopatch}-{py27,py35,py36}-flask{010,011,012,10}-blinker-pytest3
# Flask <=0.9 does not support Python 3
flask_contrib{,_autopatch}-{py27}-flask{09}-blinker-pytest3
flask_cache_contrib-py{27,35,36,37,38,39}-flask{010,011,012}-flaskcache{013}-memcached-redis{210}-blinker-pytest3
flask_cache_contrib-py27-flask{010,011}-flaskcache{012}-memcached-redis{210}-blinker-pytest3
futures_contrib-py27-futures{30,31,32,}
futures_contrib-py{35,36,37,38,39}
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 1.0 is not python 3 compatible
gevent_contrib-py27-gevent10-sslmodules
# use grpcio versions with bdist_wheel packages for python versions
# py27,py35,py36: grpcio>=1.13.0
# py37: grpcio>=1.13.0
# py38: grpcio>=1.24.3
grpc_contrib-py{27,35,36}-grpc{112,114,118,120,121,122}-googleapis-common-protos
grpc_contrib-py{37}-grpc{114,118,120,121,122,124,126,128,}-googleapis-common-protos
grpc_contrib-py{38}-grpc{124,126,128,}-googleapis-common-protos
httplib_contrib-py{27,35,36,37,38,39}
jinja2_contrib-py{27,35,36,37,38,39}-jinja{27,28,29,210,211,}
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,}
mako_contrib-py{27,35,36,37,38,39}-mako{010,100,110,}
molten_contrib-py{36,37,38,39}-molten{06,07,10,}
mysql_contrib-py{27,35,36,37,38,39}-mysqlconnector{80,}
mysqldb_contrib-py27-mysqldb{12,}
mysqldb_contrib-py{27,35,36,37,38,39}-mysqlclient{13,14,}
psycopg_contrib-py{27,35,36}-psycopg2{24,25,26,27,28}
psycopg_contrib-py37-psycopg2{27,28}
# psycopg <2.7 doesn't support Python 3.8: https://github.com/psycopg/psycopg2/issues/854
psycopg_contrib-py{38,39}-psycopg2{28}
pylibmc_contrib-py{27,35,36,37,38,39}-pylibmc{140,150,}
pylons_contrib-py27-pylons{096,097,010,10,}
pymemcache_contrib{,_autopatch}-{py27,py35,py36,py37,py38}-pymemcache{130,140}
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-py38-pymongo{30,31,32,33,35,36,37,38,39,310,}-mongoengine
pymysql_contrib-py{27,35,36,37,38}-pymysql{07,08,09,}
pynamodb_contrib-{py27,py35,py36,py37,py38}-pynamodb{40,41,42,43,}-moto1
pyodbc_contrib-py{27,35,36,37,38}-pyodbc{3,4}
pyramid_contrib{,_autopatch}-py{27,35,36,37,38}-pyramid{17,18,19,110,}-webtest
redis_contrib-py{27,35,36,37,38}-redis{210,30,32,33,34,35,}
rediscluster_contrib-py{27,35,36,37,38}-rediscluster{135,136,200,}-redis210
requests_contrib{,_autopatch}-{py27,py35,py36,py37,py38}-requests{208,209,210,211,212,213,219}
pymemcache_contrib{,_autopatch}-py{27,35,36,37,38,39}-pymemcache{130,140}
pymysql_contrib-py{27,35,36,37,38,39}-pymysql{07,08,09,}
pyodbc_contrib-py{27,35,36,37,38,39}-pyodbc{3,4}
pytest_contrib-py27-pytest4
pytest_contrib-py{35,36,37,38}-pytest{4,5,6,}
pyramid_contrib{,_autopatch}-py{27,35,36,37,38,39}-pyramid{17,18,19,110,}-webtest
redis_contrib-py{27,35,36,37,38,39}-redis{210,30,32,33,34,35,}
rediscluster_contrib-py{27,35,36,37,38,39}-rediscluster{135,136,200,}-redis210
sanic_contrib-py{36,37,38,39}-sanic{1906,1909,1912,2003,2006}
sqlalchemy_contrib-py{27,35,36,37,38,39}-sqlalchemy{10,11,12,13,}-psycopg228-mysqlconnector
sqlite3_contrib-py{27,35,36,37,38,39}-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-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}-opentracer
py{35,36,37,38}-opentracer_asyncio
py{35,36,37,38,39}-opentracer_tornado-tornado{44,45,50,60,}
py27-opentracer_gevent-gevent{10}
py{27,35,36}-opentracer_gevent-gevent{11,12}
py{37,38}-opentracer_gevent-gevent{13,14}
isolated_build = true
requires = virtualenv<=20.2.1
[testenv]
# Wheels for gevent segfault pretty easily
install_command=python -m pip install --no-binary gevent {opts} {packages}
usedevelop = true
setenv =
profile-gevent: DD_PROFILE_TEST_GEVENT=1
integration-v5: AGENT_VERSION=v5
integration-latest: AGENT_VERSION=latest
integration-snapshot: AGENT_VERSION=testagent
bottle_contrib_autopatch: DATADOG_SERVICE_NAME=bottle-app
flask_contrib_autopatch: DATADOG_SERVICE_NAME=test.flask.service
flask_contrib_autopatch: DATADOG_PATCH_MODULES=jinja2:false
pyramid_contrib_autopatch: DATADOG_SERVICE_NAME=foobar
pyramid_contrib_autopatch: DATADOG_PYRAMID_DISTRIBUTED_TRACING=True
falcon_contrib_autopatch: DATADOG_SERVICE_NAME=my-falcon
extras =
profile: profiling
deps =
cython
pytest-cov
pytest-mock
opentracing
# test dependencies installed in all envs
mock
# used to test our custom msgpack encoder
integration: msgpack
profile: pytest-benchmark
profile-minreqs: protobuf==3.0.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.0
py39-profile-minreqs-gevent: greenlet==0.4.16
# force the downgrade as a workaround
# https://github.com/aio-libs/aiohttp/issues/2662
yarl: yarl==0.18.0
yarl10: yarl>=1.0,<1.1
# backports
py27: enum34
# integrations
# aiobotocore: aiobotocore>=1.0 not yet supported
aiobotocore012: aiobotocore>=0.12,<0.13
aiobotocore011: aiobotocore>=0.11,<0.12
aiobotocore010: aiobotocore>=0.10,<0.11
aiobotocore09: aiobotocore>=0.9,<0.10
aiobotocore08: aiobotocore>=0.8,<0.9
aiobotocore07: aiobotocore>=0.7,<0.8
# aiobotocore06 does not work
aiobotocore05: aiobotocore>=0.5,<0.6
aiobotocore04: aiobotocore>=0.4,<0.5
aiobotocore03: aiobotocore>=0.3,<0.4
aiobotocore02: aiobotocore>=0.2,<0.3
aiobotocore02: multidict==4.5.2
aiopg012: aiopg>=0.12,<0.13
aiopg015: aiopg>=0.15,<0.16
aiopg: sqlalchemy
aiohttp12: aiohttp>=1.2,<1.3
aiohttp13: aiohttp>=1.3,<1.4
aiohttp20: aiohttp>=2.0,<2.1
aiohttp21: aiohttp>=2.1,<2.2
aiohttp22: aiohttp>=2.2,<2.3
aiohttp23: aiohttp>=2.3,<2.4
aiohttp30: aiohttp>=3.0,<3.1
aiohttp31: aiohttp>=3.1,<3.2
aiohttp32: aiohttp>=3.2,<3.3
aiohttp33: aiohttp>=3.3,<3.4
aiohttp34: aiohttp>=3.4,<3.5
aiohttp35: aiohttp>=3.5,<3.6
aiohttp36: aiohttp>=3.6,<3.7
aiohttp_jinja012: aiohttp_jinja2>=0.12,<0.13
aiohttp_jinja013: aiohttp_jinja2>=0.13,<0.14
aiohttp_jinja015: aiohttp_jinja2>=0.15,<0.16
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
cassandra35: cassandra-driver>=3.5,<3.6
cassandra36: cassandra-driver>=3.6,<3.7
cassandra37: cassandra-driver>=3.7,<3.8
cassandra38: cassandra-driver>=3.8,<3.9
cassandra315: cassandra-driver>=3.15,<3.16
celery31: celery>=3.1,<3.2
celery40: celery>=4.0,<4.1
celery41: celery>=4.1,<4.2
celery42: celery>=4.2,<4.3
celery43: celery>=4.3,<4.4
celery43: vine==1.3
consul: python-consul
consul07: python-consul>=0.7,<1.0
consul10: python-consul>=1.0,<1.1
consul11: python-consul>=1.1,<1.2
ddtracerun: redis
ddtracerun: gevent
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.*
elasticsearch16: elasticsearch>=1.6,<1.7
elasticsearch17: elasticsearch>=1.7,<1.8
elasticsearch18: elasticsearch>=1.8,<1.9
elasticsearch23: elasticsearch>=2.3,<2.4
elasticsearch24: elasticsearch>=2.4,<2.5
elasticsearch51: elasticsearch>=5.1,<5.2
elasticsearch52: elasticsearch>=5.2,<5.3
elasticsearch53: elasticsearch>=5.3,<5.4
elasticsearch54: elasticsearch>=5.4,<5.5
elasticsearch63: elasticsearch>=6.3,<6.4
elasticsearch64: elasticsearch>=6.4,<6.5
# elasticsearch1 package
elasticsearch1100: elasticsearch1>=1.10.0,<1.11.0
# elasticsearch2 package
elasticsearch250: elasticsearch2>=2.5.0,<2.6.0
# elasticsearch5 package
elasticsearch550: elasticsearch5>=5.5.0,<5.6.0
# elasticsearch6 package
elasticsearch640: elasticsearch6>=6.4.0,<6.5.0
falcon10: falcon>=1.0,<1.1
falcon11: falcon>=1.1,<1.2
falcon12: falcon>=1.2,<1.3
falcon13: falcon>=1.3,<1.4
falcon14: falcon>=1.4,<1.5
falcon20: falcon>=2.0,<2.1
flask09: flask>=0.9,<0.10
flask09: Werkzeug<1
flask010: flask>=0.10,<0.11
flask010: Werkzeug<1
flask011: flask>=0.11,<0.12
flask011: Werkzeug<1
flask012: flask>=0.12,<0.13
flask10: flask>=1.0,<1.1
flaskcache012: flask_cache>=0.12,<0.13
flaskcache013: flask_cache>=0.13,<0.14
futures: futures
futures30: futures>=3.0,<3.1
futures31: futures>=3.1,<3.2
futures32: futures>=3.2,<3.3
gevent10: gevent>=1.0,<1.1
gevent11: gevent>=1.1,<1.2
gevent12: gevent>=1.2,<1.3
gevent13: gevent>=1.3,<1.4
gevent14: gevent>=1.4,<1.5
grpc: grpcio
googleapis-common-protos: googleapis-common-protos
grpc112: grpcio>=1.12,<1.13
grpc114: grpcio>=1.14,<1.15
grpc118: grpcio>=1.18,<1.19
grpc120: grpcio>=1.20,<1.21
grpc121: grpcio>=1.21,<1.22
grpc122: grpcio>=1.22,<1.23
grpc124: grpcio>=1.24,<1.25
grpc126: grpcio>=1.26,<1.27
grpc128: grpcio>=1.28,<1.29
jinja: jinja2
jinja27: jinja2>=2.7,<2.8
jinja28: jinja2>=2.8,<2.9
jinja29: jinja2>=2.9,<2.10
jinja210: jinja2>=2.10,<2.11
jinja211: jinja2>=2.11,<2.12
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
mako: mako
mako010: mako>=0.1,<1.0
mako100: mako>=1.0,<1.1
mako110: mako>=1.1,<1.2
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
mysqlconnector: mysql-connector-python
mysqlconnector80: mysql-connector-python>=8.0,<8.1
mysqldb: mysql-python
mysqldb12: mysql-python>=1.2,<1.3
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
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
pymemcache130: pymemcache>=1.3.0,<1.4.0
pymemcache140: pymemcache>=1.4.0,<1.5.0
pymysql: pymysql
pymysql07: pymysql>=0.7,<0.8
pymysql08: pymysql>=0.8,<0.9
pymysql09: pymysql>=0.9,<0.10
pyramid: pyramid
pyramid17: pyramid>=1.7,<1.8
pyramid18: pyramid>=1.8,<1.9
pyramid19: pyramid>=1.9,<1.10
pyramid110: pyramid>=1.10,<1.11
psycopg224: psycopg2>=2.4,<2.5
psycopg225: psycopg2>=2.5,<2.6
psycopg226: psycopg2>=2.6,<2.7
psycopg227: psycopg2>=2.7,<2.8
psycopg228: psycopg2>=2.8,<2.9
pyodbc: pyodbc
pyodbc4: pyodbc>=4.0,<5.0
pyodbc3: pyodbc>=3.0,<4.0
pytest: pytest>=3
pytest3: pytest>=3.0,<4.0
pytest4: pytest==4.6 # last 2.7 and 3.4
pytest5: pytest>=5.0,<6.0
pytest6: pytest>=6.0,<7.0
redis: redis
redis210: redis>=2.10,<2.11
redis30: redis>=3.0,<3.1
redis32: redis>=3.2,<3.3
redis33: redis>=3.3,<3.4
redis34: redis>=3.4,<3.5
redis35: redis>=3.5,<3.6
rediscluster: redis-py-cluster
rediscluster135: redis-py-cluster>=1.3.5,<1.3.6
rediscluster136: redis-py-cluster>=1.3.6,<1.3.7
rediscluster200: redis-py-cluster>=2.0.0,<2.1.0
rediscluster210: redis-py-cluster>=2.1.0,<2.2.0
sanic_contrib: pytest-sanic
sanic_contrib: pytest-asyncio
sanic1906: sanic~=19.6.0
sanic1906: httpx
sanic1909: sanic~=19.9.0
sanic1909: httpx
sanic1912: sanic~=19.12.0
sanic2003: sanic~=20.3.0
sanic2006: sanic~=20.6.0
sanic: sanic
sqlalchemy: sqlalchemy
sqlalchemy10: sqlalchemy>=1.0,<1.1
sqlalchemy11: sqlalchemy>=1.1,<1.2
sqlalchemy12: sqlalchemy>=1.2,<1.3
sqlalchemy13: sqlalchemy>=1.3,<1.4
sslmodules3: aiohttp
sslmodules3: aiobotocore
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
# pass along test env variables
passenv=
TEST_*
# https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
CI
CI_*
CIRCLECI
CIRCLE_*
commands =
# run only essential tests related to the tracing client
tracer: pytest {posargs} tests/tracer
profile: python -m tests.profiling.run pytest --capture=no --verbose --benchmark-disable {posargs} tests/profiling
# run only the opentrace tests
opentracer: pytest {posargs} tests/opentracer/core
opentracer_asyncio: pytest {posargs} tests/opentracer/test_tracer_asyncio.py
opentracer_tornado-tornado{40,41,42,43,44}: pytest {posargs} tests/opentracer/test_tracer_tornado.py
opentracer_gevent: pytest {posargs} tests/opentracer/test_tracer_gevent.py
integration-{v5,latest,snapshot}: pytest --no-cov {posargs} tests/integration/
vendor: pytest {posargs} tests/vendor/
# Contribs
aiobotocore_contrib-{py35,py36,py37,py38}: pytest {posargs} tests/contrib/aiobotocore
aiopg_contrib-{py35,py36,py37,py38}: pytest {posargs} tests/contrib/aiopg
aiohttp_contrib: pytest {posargs} tests/contrib/aiohttp
algoliasearch_contrib: pytest {posargs} tests/contrib/algoliasearch
asyncio_contrib: pytest {posargs} tests/contrib/asyncio
bottle_contrib: 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
cassandra_contrib: pytest {posargs} tests/contrib/cassandra
celery_contrib: pytest {posargs} tests/contrib/celery
consul_contrib: pytest {posargs} tests/contrib/consul
dbapi_contrib: pytest {posargs} tests/contrib/dbapi
dogpile_contrib: pytest {posargs} tests/contrib/dogpile_cache
elasticsearch_contrib: pytest {posargs} tests/contrib/elasticsearch
falcon_contrib: pytest {posargs} tests/contrib/falcon/test_middleware.py tests/contrib/falcon/test_distributed_tracing.py
falcon_contrib_autopatch: python tests/ddtrace_run.py pytest {posargs} tests/contrib/falcon/test_autopatch.py
flask_contrib: pytest {posargs} tests/contrib/flask
flask_contrib_autopatch: python tests/ddtrace_run.py pytest {posargs} tests/contrib/flask_autopatch
flask_cache_contrib: pytest {posargs} tests/contrib/flask_cache
futures_contrib: pytest {posargs} tests/contrib/futures
gevent_contrib: pytest {posargs} tests/contrib/gevent
grpc_contrib: pytest {posargs} tests/contrib/grpc
httplib_contrib: pytest {posargs} tests/contrib/httplib
jinja2_contrib: pytest {posargs} tests/contrib/jinja2
mako_contrib: pytest {posargs} tests/contrib/mako
molten_contrib: pytest {posargs} tests/contrib/molten
mysql_contrib: pytest {posargs} tests/contrib/mysql
mysqldb_contrib: pytest {posargs} tests/contrib/mysqldb
psycopg_contrib: pytest {posargs} tests/contrib/psycopg
pylibmc_contrib: pytest {posargs} tests/contrib/pylibmc
pylons_contrib: pytest {posargs} tests/contrib/pylons
pymemcache_contrib: pytest {posargs} --ignore="tests/contrib/pymemcache/autopatch" tests/contrib/pymemcache/
pymemcache_contrib_autopatch: python tests/ddtrace_run.py pytest {posargs} tests/contrib/pymemcache/autopatch/
pymysql_contrib: pytest {posargs} tests/contrib/pymysql
pyodbc_contrib: pytest {posargs} tests/contrib/pyodbc
pytest_contrib: pytest {posargs} tests/contrib/pytest
pyramid_contrib: pytest {posargs} tests/contrib/pyramid/test_pyramid.py
pyramid_contrib_autopatch: python tests/ddtrace_run.py pytest {posargs} tests/contrib/pyramid/test_pyramid_autopatch.py
redis_contrib: pytest {posargs} tests/contrib/redis
rediscluster_contrib: pytest {posargs} tests/contrib/rediscluster
kombu_contrib: pytest {posargs} tests/contrib/kombu
sanic_contrib: pytest {posargs} tests/contrib/sanic/test_sanic.py
sanic_contrib: pytest {posargs} tests/contrib/sanic/test_sanic_server.py
sqlalchemy_contrib: pytest {posargs} tests/contrib/sqlalchemy
sqlite3_contrib: pytest {posargs} tests/contrib/sqlite3
tornado_contrib: pytest {posargs} tests/contrib/tornado
vertica_contrib: pytest {posargs} tests/contrib/vertica/
# run subsets of the tests for particular library versions
ddtracerun: pytest {posargs} --no-cov tests/commands/test_runner.py
test_logging: pytest {posargs} tests/contrib/logging/
[testenv:wait]
skip_install=true
commands=python tests/wait-for-services.py {posargs}
basepython=python
deps=
cassandra-driver
psycopg2
mysql-connector-python!=8.0.18
redis-py-cluster>=1.3.6,<1.4.0
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
[testenv:docs]
extras=
opentracing
deps=
reno[sphinx]
sphinx
sphinxcontrib-spelling
PyEnchant
commands=reno lint
sphinx-build -W -b spelling docs docs/_build/html
sphinx-build -W -b html docs docs/_build/html
basepython=python
# DEV: We use `conftest.py` as a local pytest plugin to configure hooks for collection
[pytest]
# --cov-report is intentionally empty else pytest-cov will default to generating a report
addopts = --cov=ddtrace/ --cov=tests/ --cov-append --cov-report= --durations=10 --junitxml=test-results/junit.xml
# DEV: The default is `test_*\.py` which will miss `test.py` files
python_files = test*\.py
filterwarnings =
# Show any DeprecationWarnings once
once::DeprecationWarning
[flake8]
max-line-length=120
exclude=
.ddtox,.tox,
.git,__pycache__,
.eggs,*.egg,
build,
# We shouldn't lint our vendored dependencies
ddtrace/vendor/
ddtrace/profiling/exporter/pprof_pb2.py
tests/profiling/_ast_test_file.py
tests/profiling/simple_program_gevent.py
# Ignore:
# A003: XXX is a python builtin, consider renaming the class attribute
# G201 Logging: .exception(...) should be used instead of .error(..., exc_info=True)
# E231,W503: not respected by black
# We ignore most of the D errors because there are too many; the goal is to fix them eventually
ignore = W503,E231,A003,G201,D100,D101,D102,D103,D104,D105,D106,D107,D200,D202,D204,D205,D208,D210,D300,D400,D401,D403,D413,RST301,B902
enable-extensions=G
rst-roles = class,meth,obj,ref
rst-directives = py:data