@@ -12,8 +12,9 @@ envlist =
1212 ; below mean these dependencies are being used:
1313 ; 0: protobuf==3.20.3
1414 ; 1: protobuf==4.25.3
15- py3{8,9,10,11}-opentelemetry-protobuf-{0,1}
16- pypy3-opentelemetry-protobuf-{0,1}
15+ ; 2: protobuf==5.27.0
16+ py3{8,9,10,11}-opentelemetry-protobuf-{0,1,2}
17+ pypy3-opentelemetry-protobuf-{0,1,2}
1718
1819 py3{8,9,10,11}-opentelemetry-sdk
1920 pypy3-opentelemetry-sdk
@@ -86,7 +87,7 @@ envlist =
8687 tracecontext
8788 mypy,mypyinstalled
8889 docs
89- docker-tests-proto{3,4}
90+ docker-tests-proto{3,4,5 }
9091 public-symbols-check
9192
9293[testenv]
@@ -99,9 +100,10 @@ deps =
99100 coverage: pytest-cov
100101 mypy,mypyinstalled: mypy
101102
102- ; proto 3 and 4 tests install the respective version of protobuf
103+ ; proto 3,4, and 5 tests install the respective version of protobuf
103104 proto3: protobuf~=3.19.0
104105 proto4: protobuf~=4.0
106+ proto5: protobuf~=5.26.0
105107
106108
107109setenv =
@@ -123,6 +125,7 @@ commands_pre =
123125
124126 protobuf-0: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-0.txt
125127 protobuf-1: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-1.txt
128+ protobuf-2: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-2.txt
126129
127130 getting-started: pip install -r {toxinidir}/docs/getting_started/tests/requirements.txt
128131 getting-started: pip install -e {env:CONTRIB_REPO}\# egg=opentelemetry-util-http&subdirectory=util/opentelemetry-util-http
@@ -275,7 +278,7 @@ commands_pre =
275278commands =
276279 {toxinidir}/scripts/tracecontext-integration-test.sh
277280
278- [testenv:docker-tests-proto{3,4}]
281+ [testenv:docker-tests-proto{3,4,5 }]
279282deps =
280283 pytest ==7.1.3
281284 # Pinning PyYAML for issue: https://github.com/yaml/pyyaml/issues/724
@@ -285,9 +288,10 @@ deps =
285288 docker-compose ==1.29.2
286289 requests ==2.28.2
287290
288- ; proto 3 and 4 tests install the respective version of protobuf
291+ ; proto 3, 4 and 5 tests install the respective version of protobuf
289292 proto3: protobuf~=3.19.0
290293 proto4: protobuf~=4.0
294+ proto5: protobuf~=5.26.0
291295
292296changedir =
293297 tests/opentelemetry-docker-tests/tests
@@ -310,6 +314,8 @@ commands =
310314 proto3: pytest {posargs}
311315 ; opencensus exporter does not work with protobuf 4
312316 proto4: pytest --ignore opencensus {posargs}
317+ ; opencensus exporter does not work with protobuf 5
318+ proto5: pytest --ignore opencensus {posargs}
313319
314320commands_post =
315321 docker-compose down -v
0 commit comments