@@ -52,10 +52,18 @@ envlist =
5252 ; Only officially supported Python versions are tested for each Django
5353 ; major release. Updated list can be found at:
5454 ; https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
55+ ; The numbers at the end of the environment names
56+ ; below mean these dependencies are being used:
57+ ; 0: django~=2.0
58+ ; 1: django~=3.0
59+ ; 2: django>=4.0b1,<5.0 backports.zoneinfo==0.2.1
60+ ; 3: django>=4.0b1,<5.0
61+ py3{8,9}-test-instrumentation-django-0
62+ py3{8,9}-test-instrumentation-django-1
5563 py3{8,9}-test-instrumentation-django-2
56- py3{8,9, 10,11}-test-instrumentation-django-3
57- py3{8,9, 10,11}-test-instrumentation-django-4
58- pypy3-test-instrumentation-django-{2,3 }
64+ py3{10,11}-test-instrumentation-django-1
65+ py3{10,11}-test-instrumentation-django-3
66+ pypy3-test-instrumentation-django-{0,1 }
5967
6068 ; opentelemetry-instrumentation-dbapi
6169 py3{8,9,10,11}-test-instrumentation-dbapi
@@ -255,9 +263,6 @@ deps =
255263 test: pytest-benchmark
256264 coverage: pytest
257265 coverage: pytest-cov
258- django-2: django~=2.0
259- django-3: django~=3.0
260- django-4: django>=4.0b1,<5.0
261266 elasticsearch-2: elasticsearch-dsl>=2.0,<3.0
262267 elasticsearch-2: elasticsearch>=2.0,<3.0
263268 elasticsearch-5: elasticsearch-dsl>=5.0,<6.0
@@ -333,9 +338,9 @@ commands_pre =
333338
334339 grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
335340
336- falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4}, pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
337- wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4}, pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
338- asgi,django-{3,4}, starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
341+ falcon-{1,2,3},flask-{213,220,300},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
342+ wsgi,falcon-{1,2,3},flask-{213,220,300},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
343+ asgi,starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
339344
340345 asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
341346
@@ -360,7 +365,13 @@ commands_pre =
360365
361366 dbapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
362367
363- django-{1,2,3,4}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]
368+ py3{8,9}-test-instrumentation-django-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-0.txt
369+ py3{8,9}-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
370+ py3{8,9}-test-instrumentation-django-2: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-2.txt
371+ py3{10,11}-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
372+ py3{10,11}-test-instrumentation-django-3: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-3.txt
373+ pypy3-test-instrumentation-django-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-0.txt
374+ pypy3-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
364375
365376 fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
366377
@@ -539,7 +550,7 @@ commands_pre =
539550 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
540551 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]
541552 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-boto3sqs[test]
542- python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-django[ test]
553+ pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/ test-requirements-3.txt
543554 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette[test]
544555 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
545556 python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon[test]
0 commit comments