forked from aws/aws-xray-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
124 lines (106 loc) · 3.33 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
[tox]
envlist =
py{27,34,35,36,37,38,39}-default
py{35,36,37,38,39}-aiohttp2
py{35,36,37,38,39}-django22
py{36,37,38,39}-django30
py{36,37,38,39}-django31
py{36,37,38,39}-django32
py{27,36,37,38,39}-sqlalchemy
py{34,35}-sqlalchemy
coverage-report
skip_missing_interpreters = True
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
deps =
pytest > 3.0.0
pytest-benchmark
coverage==4.5.4
codecov
requests
bottle >= 0.10
flask >= 0.10
sqlalchemy
Flask-SQLAlchemy
future
django22: Django==2.2.*
django30: Django==3.0.*
django31: Django==3.1.*
django32: Django==3.2.*
django{22,30,31,32}: django-fake-model
pynamodb >= 3.3.1
psycopg2
pg8000
testing.postgresql
testing.mysqld
webtest
mock
# Python2 only deps
py{27}: enum34
# pymysql deps
py{27,34,35}: pymysql < 1.0.0
py{36,37,38,39}: pymysql >= 1.0.0
# Python3.4 only deps
py34: typing >= 3.7.4.3
# Python3.5+ only deps
py{35,36,37,38,39}: aiohttp >= 3.0.0
py{35,36,37,38,39}: pytest-aiohttp
py{35,36,37,38,39}: aiobotocore >= 0.10.0
commands =
coverage erase
py{27,34}-default: coverage run --append --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/ext/django --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py --ignore tests/ext/sqlalchemy_core
py{35,36,37,38,39}-default: coverage run --append --source aws_xray_sdk -m py.test tests --ignore tests/ext/django --ignore tests/ext/sqlalchemy_core
py{27,36,37,38,39}-default: coverage run --append --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core
py{34,35}-default: coverage run --append --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core/ --ignore tests/ext/sqlalchemy_core/test_sqlalchemy_core_2.py
django{22,30,31,32}: coverage run --append --source aws_xray_sdk -m py.test tests/ext/django
codecov
setenv =
DJANGO_SETTINGS_MODULE = tests.ext.django.app.settings
AWS_SECRET_ACCESS_KEY = fake_key
AWS_ACCESS_KEY_ID=fake_id
[testenv:py35-aiohttp2]
deps =
pytest > 3.0.0
aiohttp >= 2.3.0,<3.0.0
pytest-aiohttp
botocore
coverage==4.5.4
commands =
py{35}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:py36-aiohttp2]
deps =
pytest > 3.0.0
aiohttp >= 2.3.0,<3.0.0
pytest-aiohttp
botocore
coverage==4.5.4
commands =
py{36}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:py37-aiohttp2]
deps =
pytest > 3.0.0
aiohttp >= 2.3.0,<3.0.0
pytest-aiohttp
botocore
coverage==4.5.4
commands =
py{37}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:py38-aiohttp2]
deps =
pytest > 5.2.0
aiohttp >= 3.6
pytest-aiohttp
botocore
coverage==4.5.4
commands =
py{38}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
# might need to add coverage combine at some point
py{38}: coverage report
py{38}: coverage html
[flake8]
max-line-length=120
exclude=tests