Skip to content

Commit 305cf91

Browse files
committed
Remove [test] package for django instrumentation
Fixes open-telemetry#2198
1 parent 5552db2 commit 305cf91

File tree

6 files changed

+112
-15
lines changed

6 files changed

+112
-15
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-django/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ asgi = [
3838
instruments = [
3939
"django >= 1.10",
4040
]
41-
test = [
42-
"opentelemetry-instrumentation-django[instruments]",
43-
"opentelemetry-test-utils == 0.45b0.dev",
44-
]
4541

4642
[project.entry-points.opentelemetry_instrumentor]
4743
django = "opentelemetry.instrumentation.django:DjangoInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
Django==2.2.28
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
pytz==2024.1
14+
sqlparse==0.4.4
15+
tomli==2.0.1
16+
typing_extensions==4.10.0
17+
wrapt==1.16.0
18+
zipp==3.17.0
19+
-e opentelemetry-instrumentation
20+
-e instrumentation/opentelemetry-instrumentation-wsgi
21+
-e util/opentelemetry-util-http
22+
-e instrumentation/opentelemetry-instrumentation-django
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
Django==3.2.24
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
pytz==2024.1
14+
sqlparse==0.4.4
15+
tomli==2.0.1
16+
typing_extensions==4.10.0
17+
wrapt==1.16.0
18+
zipp==3.17.0
19+
-e opentelemetry-instrumentation
20+
-e instrumentation/opentelemetry-instrumentation-wsgi
21+
-e instrumentation/opentelemetry-instrumentation-asgi
22+
-e util/opentelemetry-util-http
23+
-e instrumentation/opentelemetry-instrumentation-django
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
backports.zoneinfo==0.2.1
4+
Deprecated==1.2.14
5+
Django==4.2.10
6+
importlib-metadata==6.11.0
7+
iniconfig==2.0.0
8+
packaging==23.2
9+
pluggy==1.4.0
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
sqlparse==0.4.4
15+
tomli==2.0.1
16+
typing_extensions==4.10.0
17+
wrapt==1.16.0
18+
zipp==3.17.0
19+
-e opentelemetry-instrumentation
20+
-e instrumentation/opentelemetry-instrumentation-wsgi
21+
-e instrumentation/opentelemetry-instrumentation-asgi
22+
-e util/opentelemetry-util-http
23+
-e instrumentation/opentelemetry-instrumentation-django
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
Django==4.2.10
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
sqlparse==0.4.4
14+
tomli==2.0.1
15+
typing_extensions==4.10.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e opentelemetry-instrumentation
19+
-e instrumentation/opentelemetry-instrumentation-wsgi
20+
-e instrumentation/opentelemetry-instrumentation-asgi
21+
-e util/opentelemetry-util-http
22+
-e instrumentation/opentelemetry-instrumentation-django

Diff for: tox.ini

+22-11
Original file line numberDiff line numberDiff line change
@@ -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
@@ -260,9 +268,6 @@ deps =
260268
test: pytest-benchmark
261269
coverage: pytest
262270
coverage: pytest-cov
263-
django-2: django~=2.0
264-
django-3: django~=3.0
265-
django-4: django>=4.0b1,<5.0
266271
elasticsearch-2: elasticsearch-dsl>=2.0,<3.0
267272
elasticsearch-2: elasticsearch>=2.0,<3.0
268273
elasticsearch-5: elasticsearch-dsl>=5.0,<6.0
@@ -339,9 +344,9 @@ commands_pre =
339344

340345
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
341346

342-
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
343-
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
344-
django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
347+
falcon-{1,2,3},flask-{213,220,300},pyramid,tornado,starlette,fastapi,aiohttp,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
348+
wsgi,falcon-{1,2,3},flask-{213,220,300},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
349+
starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi
345350

346351
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
347352

@@ -366,7 +371,13 @@ commands_pre =
366371

367372
dbapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]
368373

369-
django-{1,2,3,4}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]
374+
py3{8,9}-test-instrumentation-django-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-0.txt
375+
py3{8,9}-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
376+
py3{8,9}-test-instrumentation-django-2: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-2.txt
377+
py3{10,11}-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
378+
py3{10,11}-test-instrumentation-django-3: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-3.txt
379+
pypy3-test-instrumentation-django-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-0.txt
380+
pypy3-test-instrumentation-django-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-1.txt
370381

371382
fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
372383

@@ -543,7 +554,7 @@ commands_pre =
543554
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi/test-requirements.txt
544555
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-botocore[test]
545556
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-boto3sqs[test]
546-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]
557+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-django/test-requirements-3.txt
547558
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette[test]
548559
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
549560
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon[test]

0 commit comments

Comments
 (0)