Skip to content

Commit 90518fd

Browse files
committed
Remove [test] package from psycopg instrumentation
Fixes #2308
1 parent 8daa8ad commit 90518fd

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

instrumentation/opentelemetry-instrumentation-psycopg/pyproject.toml

-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ dependencies = [
3434
instruments = [
3535
"psycopg >= 3.1.0",
3636
]
37-
test = [
38-
"opentelemetry-instrumentation-psycopg[instruments]",
39-
"opentelemetry-test-utils == 0.45b0.dev",
40-
]
4137

4238
[project.entry-points.opentelemetry_instrumentor]
4339
psycopg = "opentelemetry.instrumentation.psycopg:PsycopgInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
backports.zoneinfo==0.2.1
4+
Deprecated==1.2.14
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
psycopg==3.1.18
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
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-dbapi
20+
-e ../../../instrumentation/opentelemetry-instrumentation-psycopg

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ commands_pre =
430430

431431
pymongo: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
432432

433-
psycopg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
433+
psycopg: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg/test-requirements.txt
434434

435435
psycopg2: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
436436

@@ -562,7 +562,7 @@ commands_pre =
562562
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]
563563
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-logging[test]
564564
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache[test]
565-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg[test]
565+
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg
566566
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2[test]
567567
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
568568
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-server[test]
@@ -610,7 +610,7 @@ deps =
610610
# prerequisite: install libpq-dev (debian) or postgresql-devel (rhel), postgresql (mac)
611611
# see https://www.psycopg.org/docs/install.html#build-prerequisites
612612
# you might have to install additional packages depending on your OS
613-
psycopg ~= 3.1.17
613+
psycopg==3.1.18
614614
psycopg2 ~= 2.9.5
615615
aiopg >= 0.13.0, < 1.3.0
616616
sqlalchemy ~= 1.4

0 commit comments

Comments
 (0)