-
Notifications
You must be signed in to change notification settings - Fork 143
/
tox.ini
153 lines (94 loc) · 4.52 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
[tox]
skip_missing_interpreters = True
envlist =
py{37,38,39,310,311,312}-core
py{37,38,39,310,311,312}-ext-aiobotocore
py{37,38,39,310,311,312}-ext-aiohttp
py{37,38,39,310,311,312}-ext-botocore
py{37,38,39,310,311,312}-ext-bottle
py{37,38,39}-ext-django-2
py{37,38,39,310}-ext-django-3
; Django4 is only for python 3.8+
py{38,39,310,311,312}-ext-django-4
py{37,38,39,310,311,312}-ext-flask
py{37,38,39,310,311,312}-ext-flask_sqlalchemy
py{37,38,39,310,311,312}-ext-httplib
py{37,38,39,310,311,312}-ext-httpx
py{37,38,39,310,311,312}-ext-pg8000
py{37,38,39,310,311,312}-ext-psycopg2
py{37,38,39,310,311,312}-ext-pymysql
py{37,38,39,310,311,312}-ext-pynamodb
py{37,38,39,310,311,312}-ext-requests
py{37,38,39,310,311,312}-ext-sqlalchemy
py{37,38,39,310,311,312}-ext-sqlalchemy_core
py{37,38,39,310,311,312}-ext-sqlite3
[testenv]
passenv = TOXENV,CI,CODECOV_*
deps =
; Testing packages
pytest > 3.0.0
pytest-benchmark
coverage == 4.5.4
codecov
; Packages common to all test environments
wrapt
; Python 3.5+ only deps
py{37,38,39,310,311,312}: pytest-asyncio == 0.21.2
; For pkg_resources
py{37,38,39,310,311,312}: setuptools
ext-aiobotocore: aiobotocore >= 0.10.0
ext-aiobotocore: pytest-asyncio
ext-aiohttp: aiohttp >= 3.3.0
ext-aiohttp: pytest-aiohttp
ext-httpx: httpx >= 0.20
ext-httpx: pytest-asyncio >= 0.19
ext-requests: requests
ext-bottle: bottle >= 0.10
ext-bottle: webtest
ext-flask: flask >= 0.10
ext-flask_sqlalchemy: flask >= 0.10,<3.0.0
ext-flask_sqlalchemy: Flask-SQLAlchemy <= 2.5.1
ext-flask_sqlalchemy: sqlalchemy >=1.0.0,<2.0.0
ext-sqlalchemy: sqlalchemy >=1.0.0,<2.0.0
ext-sqlalchemy_core: sqlalchemy >=1.0.0,<2.0.0
ext-sqlalchemy_core: testing.postgresql
ext-sqlalchemy_core: psycopg2
ext-sqlalchemy_core: pymysql >= 1.0.0
ext-sqlalchemy_core: cryptography
ext-django-2: Django >=2.0,<3.0
ext-django-3: Django >=3.0,<4.0
ext-django-4: Django >=4.0,<5.0
ext-django: django-fake-model
py{37,38,39,310,311,312}-ext-pynamodb: pynamodb >=3.3.1,<6.0.0
ext-psycopg2: psycopg2
ext-psycopg2: testing.postgresql
ext-pg8000: pg8000 <= 1.20.0
ext-pg8000: testing.postgresql
py{37,38,39,310,311,312}-ext-pymysql: pymysql >= 1.0.0
py{37,38,39,310,311,312}-ext-pymysql: cryptography
setenv =
DJANGO_SETTINGS_MODULE = tests.ext.django.app.settings
AWS_SECRET_ACCESS_KEY = fake_key
AWS_ACCESS_KEY_ID=fake_id
commands =
coverage erase
py{37,38,39,310,311,312}-core: coverage run --append --source aws_xray_sdk -m pytest --ignore tests/ext {posargs}
ext-aiobotocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiobotocore {posargs}
ext-aiohttp: coverage run --append --source aws_xray_sdk -m pytest tests/ext/aiohttp {posargs}
ext-botocore: coverage run --append --source aws_xray_sdk -m pytest tests/ext/botocore {posargs}
ext-bottle: coverage run --append --source aws_xray_sdk -m pytest tests/ext/bottle {posargs}
ext-django: coverage run --append --source aws_xray_sdk -m pytest tests/ext/django {posargs}
ext-flask: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask {posargs}
ext-flask_sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/flask_sqlalchemy {posargs}
ext-httplib: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httplib {posargs}
ext-httpx: coverage run --append --source aws_xray_sdk -m pytest tests/ext/httpx {posargs}
ext-pg8000: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pg8000 {posargs}
ext-psycopg2: coverage run --append --source aws_xray_sdk -m pytest tests/ext/psycopg2 {posargs}
ext-pymysql: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pymysql {posargs}
ext-pynamodb: coverage run --append --source aws_xray_sdk -m pytest tests/ext/pynamodb {posargs}
ext-requests: coverage run --append --source aws_xray_sdk -m pytest tests/ext/requests {posargs}
ext-sqlalchemy: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy {posargs}
py{37,38,39,310,311,312}-ext-sqlalchemy_core: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlalchemy_core {posargs}
ext-sqlite3: coverage run --append --source aws_xray_sdk -m pytest tests/ext/sqlite3 {posargs}
; TODO: add additional logic to combine coverage from "core" and "ext" test runs
; codecov