forked from aws/aws-xray-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (72 loc) · 1.96 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
[tox]
envlist =
py{27,34,35,36,37}
py{35,36,37}-aiohttp2
coverage-report
skip_missing_interpreters = True
[testenv]
deps =
pytest > 3.0.0
coverage
requests
flask >= 0.10
sqlalchemy
Flask-SQLAlchemy
future
# the sdk doesn't support earlier version of django
django >= 1.10, <2.0
django-fake-model
pynamodb >= 3.3.1
psycopg2
pg8000
testing.postgresql
# Python2 only deps
py{27}: enum34
# Python3.5+ only deps
py{35,36,37}: aiohttp >= 3.0.0
py{35,36,37}: pytest-aiohttp
py{35,36,37}: aiobotocore >= 0.10.0
commands =
py{27,34}: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py
py{35,36,37}: coverage run --source aws_xray_sdk -m py.test tests
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
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
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
commands =
py{37}: 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{37}: coverage report
py{37}: coverage html
[flake8]
max-line-length=120
exclude=tests