Skip to content

Commit de8b9e0

Browse files
authored
Remove unnecessary dependencies pytest, flaky and pytest-benchmark (open-telemetry#4022)
* Remove unnecessary dependencies pytest and pytest-benchmark Fixes open-telemetry#4021 * Separate runs for CI * Remove unnecessary flaky dependency * wPU * wer * wer * Try without -c dev-requirements * Try again for all packages * Another attempt separating both runs * Add mypy-requirements to keep mypy version
1 parent 3836da8 commit de8b9e0

File tree

26 files changed

+8
-48
lines changed

26 files changed

+8
-48
lines changed

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ jobs:
9292
- name: Windows does not let git check out files with long names
9393
if: ${{ matrix.os == 'windows-2019'}}
9494
run: git config --system core.longpaths true
95-
- name: run tox
95+
- name: run pytest with --benchmark-skip
96+
if: ${{ matrix.package == 'sdk' || matrix.package == 'exporter-otlp-proto-grpc' }}
9697
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra --benchmark-skip
98+
- name: run pytest without --benchmark-skip
99+
if: ${{ !(matrix.package == 'sdk' || matrix.package == 'exporter-otlp-proto-grpc') }}
100+
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra
97101
misc:
98102
strategy:
99103
fail-fast: false

dev-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ ruamel.yaml==0.17.21
1818
asgiref==3.7.2
1919
psutil==5.9.6
2020
GitPython==3.1.41
21-
flaky==3.7.0
2221
pre-commit==3.7.0; python_version >= '3.9'
2322
pre-commit==3.5.0; python_version < '3.9'

docs/getting_started/tests/requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ certifi==2023.7.22
44
charset-normalizer==2.0.12
55
click==8.1.7
66
Deprecated==1.2.14
7-
flaky==3.7.0
87
Flask==2.3.3
98
idna==3.7
109
importlib-metadata==6.8.0
@@ -16,7 +15,6 @@ packaging==24.0
1615
pluggy==1.3.0
1716
py-cpuinfo==9.0.0
1817
pytest==7.4.4
19-
pytest-benchmark==4.0.0
2018
requests==2.32.3
2119
tomli==2.0.1
2220
typing_extensions==4.8.0

exporter/opentelemetry-exporter-opencensus/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
grpcio==1.62.0
54
importlib-metadata==6.11.0
65
iniconfig==2.0.0
@@ -10,7 +9,6 @@ pluggy==1.5.0
109
protobuf==3.20.3
1110
py-cpuinfo==9.0.0
1211
pytest==7.4.4
13-
pytest-benchmark==4.0.0
1412
tomli==2.0.1
1513
typing_extensions==4.10.0
1614
wrapt==1.16.0

exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-0.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
protobuf==3.20.3
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-1.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
protobuf==4.25.3
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
googleapis-common-protos==1.62.0
54
grpcio==1.62.0
65
importlib-metadata==6.11.0

exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-1.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
googleapis-common-protos==1.62.0
54
grpcio==1.62.0
65
importlib-metadata==6.11.0

exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ asgiref==3.7.2
22
certifi==2024.2.2
33
charset-normalizer==3.3.2
44
Deprecated==1.2.14
5-
flaky==3.7.0
65
googleapis-common-protos==1.62.0
76
idna==3.7
87
importlib-metadata==6.11.0
@@ -12,7 +11,6 @@ pluggy==1.5.0
1211
protobuf==3.20.3
1312
py-cpuinfo==9.0.0
1413
pytest==7.4.4
15-
pytest-benchmark==4.0.0
1614
PyYAML==6.0.1
1715
requests==2.32.3
1816
responses==0.24.1

exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ asgiref==3.7.2
22
certifi==2024.2.2
33
charset-normalizer==3.3.2
44
Deprecated==1.2.14
5-
flaky==3.7.0
65
googleapis-common-protos==1.62.0
76
idna==3.7
87
importlib-metadata==6.11.0
@@ -12,7 +11,6 @@ pluggy==1.5.0
1211
protobuf==4.25.3
1312
py-cpuinfo==9.0.0
1413
pytest==7.4.4
15-
pytest-benchmark==4.0.0
1614
PyYAML==6.0.1
1715
requests==2.32.3
1816
responses==0.24.1

exporter/opentelemetry-exporter-otlp/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

exporter/opentelemetry-exporter-prometheus/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
prometheus_client==0.20.0
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

exporter/opentelemetry-exporter-zipkin-json/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ asgiref==3.7.2
22
certifi==2024.2.2
33
charset-normalizer==3.3.2
44
Deprecated==1.2.14
5-
flaky==3.7.0
65
idna==3.7
76
importlib-metadata==6.11.0
87
iniconfig==2.0.0
98
packaging==24.0
109
pluggy==1.5.0
1110
py-cpuinfo==9.0.0
1211
pytest==7.4.4
13-
pytest-benchmark==4.0.0
1412
requests==2.32.3
1513
tomli==2.0.1
1614
typing_extensions==4.10.0

exporter/opentelemetry-exporter-zipkin-proto-http/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ asgiref==3.7.2
22
certifi==2024.2.2
33
charset-normalizer==3.3.2
44
Deprecated==1.2.14
5-
flaky==3.7.0
65
idna==3.7
76
importlib-metadata==6.11.0
87
iniconfig==2.0.0
@@ -11,7 +10,6 @@ pluggy==1.5.0
1110
protobuf==3.20.3
1211
py-cpuinfo==9.0.0
1312
pytest==7.4.4
14-
pytest-benchmark==4.0.0
1513
requests==2.32.3
1614
tomli==2.0.1
1715
typing_extensions==4.10.0

exporter/opentelemetry-exporter-zipkin/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

mypy-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mypy==1.9.0

opentelemetry-api/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

opentelemetry-proto/test-requirements-0.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
protobuf==3.20.3
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

opentelemetry-proto/test-requirements-1.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
protobuf==4.25.3
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

opentelemetry-semantic-conventions/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

propagator/opentelemetry-propagator-b3/test-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0

propagator/opentelemetry-propagator-jaeger/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

shim/opentelemetry-opencensus-shim/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ cachetools==5.3.3
33
certifi==2024.2.2
44
charset-normalizer==3.3.2
55
Deprecated==1.2.14
6-
flaky==3.7.0
76
google-api-core==2.17.1
87
google-auth==2.28.1
98
googleapis-common-protos==1.62.0
@@ -21,7 +20,6 @@ py-cpuinfo==9.0.0
2120
pyasn1==0.5.1
2221
pyasn1-modules==0.3.0
2322
pytest==7.4.4
24-
pytest-benchmark==4.0.0
2523
requests==2.32.3
2624
rsa==4.9
2725
six==1.16.0

shim/opentelemetry-opentracing-shim/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
opentracing==2.4.0
76
packaging==24.0
87
pluggy==1.5.0
98
py-cpuinfo==9.0.0
109
pytest==7.4.4
11-
pytest-benchmark==4.0.0
1210
tomli==2.0.1
1311
typing_extensions==4.10.0
1412
wrapt==1.16.0

tests/opentelemetry-test-utils/test-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
3-
flaky==3.7.0
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0
65
packaging==24.0
76
pluggy==1.5.0
87
py-cpuinfo==9.0.0
98
pytest==7.4.4
10-
pytest-benchmark==4.0.0
119
tomli==2.0.1
1210
typing_extensions==4.10.0
1311
wrapt==1.16.0

tox.ini

+2-5
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,8 @@ envlist =
9191

9292
[testenv]
9393
deps =
94-
-c dev-requirements.txt
95-
opentelemetry: pytest
96-
opentelemetry: pytest-benchmark
97-
opentelemetry: flaky
9894
coverage: pytest
9995
coverage: pytest-cov
100-
mypy,mypyinstalled: mypy
10196

10297
; proto 3 and 4 tests install the respective version of protobuf
10398
proto3: protobuf~=3.19.0
@@ -113,6 +108,8 @@ setenv =
113108

114109
commands_pre =
115110

111+
mypy,mypyinstalled: pip install -r {toxinidir}/mypy-requirements.txt
112+
116113
api: pip install -r {toxinidir}/opentelemetry-api/test-requirements.txt
117114

118115
sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt

0 commit comments

Comments
 (0)