-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (48 loc) · 2 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
[tox]
isolated_build = True
skipsdist = True
skip_missing_interpreters = True
envlist =
; aws-opentelemetry-distro
3.{7,8,9,10,11}-test-aws-opentelemetry-distro
; intentionally excluded from pypy3 since we use grpc in aws-opentelemetry-distro, but pypy3 doesn't support grpc
lint
spellcheck
[testenv]
deps =
-c dev-requirements.txt
test: pytest
test: pytest-cov
setenv =
; TODO: The two repos branches need manual updated over time, need to figure out a more sustainable solution.
CORE_REPO="git+https://github.com/open-telemetry/opentelemetry-python.git@release/v1.22.x-0.43bx"
CONTRIB_REPO="git+https://github.com/open-telemetry/opentelemetry-python-contrib.git@main"
changedir =
test-aws-opentelemetry-distro: aws-opentelemetry-distro/tests
commands_pre =
; Install without -e to test the actual installation
3.{7,8,9,10,11}: python -m pip install -U pip setuptools wheel
; Install common packages for all the tests. These are not needed in all the
; cases but it saves a lot of boilerplate in this file.
test: pip install botocore
test: pip install "opentelemetry-api[test] @ {env:CORE_REPO}#egg=opentelemetry-api&subdirectory=opentelemetry-api"
test: pip install "opentelemetry-sdk[test] @ {env:CORE_REPO}#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk"
test: pip install "opentelemetry-instrumentation[test] @ {env:CONTRIB_REPO}#egg=opentelemetry-instrumentation&subdirectory=opentelemetry-instrumentation"
test: pip install "opentelemetry-exporter-otlp[test] @ {env:CORE_REPO}#egg=opentelemetry-exporter-otlp&subdirectory=exporter/opentelemetry-exporter-otlp"
aws-opentelemetry-distro: pip install {toxinidir}/aws-opentelemetry-distro
commands =
test: pytest --cov={envsitepackagesdir}/amazon --cov-config=../../.coveragerc {posargs}
[testenv:spellcheck]
basepython: python3
recreate = True
deps =
codespell
commands =
codespell
[testenv:lint]
basepython: python3
recreate = True
deps =
-r dev-requirements.txt
commands =
python scripts/eachdist.py lint --check-only