Skip to content

Commit 3925744

Browse files
blarghmateyCopilot
andcommitted
Restructure wrapt test requirements
- Remove wrapt from base test-requirements.txt (installed via pyproject.toml) - Remove Deprecated from base test-requirements.txt (version conflicts with wrapt 2.x) - Create test-requirements-wrapt1.txt with wrapt<2.0.0 and Deprecated==1.2.14 - Create test-requirements-wrapt2.txt with wrapt>=2.0.0 and Deprecated>=1.2.18 - Update tox.ini to use requirements files instead of factor-based deps - Add Deprecated to lint environment deps This follows the pattern used by other packages (botocore, httpx) and resolves dependency conflicts where Deprecated 1.2.14 requires wrapt<2. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d7540bb commit 3925744

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r test-requirements.txt
2+
Deprecated==1.2.14
3+
wrapt>=1.0.0,<2.0.0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r test-requirements.txt
2+
Deprecated>=1.2.18
3+
wrapt>=2.0.0,<3.0.0
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
asgiref==3.8.1
2-
Deprecated==1.2.14
32
gevent==25.5.1
43
iniconfig==2.0.0
54
packaging==24.0
@@ -8,6 +7,5 @@ py-cpuinfo==9.0.0
87
pytest==7.4.4
98
tomli==2.0.1
109
typing_extensions==4.12.2
11-
wrapt==1.16.0
1210
zipp==3.19.2
1311
-e opentelemetry-instrumentation

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,11 @@ deps =
458458
coverage: pytest
459459
coverage: pytest-cov
460460

461-
; wrapt version matrix
462-
wrapt1: wrapt>=1.0.0,<2.0.0
463-
wrapt2: wrapt>=2.0.0,<3.0.0
464-
465461
opentelemetry-instrumentation: {[testenv]test_deps}
466-
opentelemetry-instrumentation: -r {toxinidir}/opentelemetry-instrumentation/test-requirements.txt
462+
wrapt1: -r {toxinidir}/opentelemetry-instrumentation/test-requirements-wrapt1.txt
463+
wrapt2: -r {toxinidir}/opentelemetry-instrumentation/test-requirements-wrapt2.txt
464+
lint-opentelemetry-instrumentation: -r {toxinidir}/opentelemetry-instrumentation/test-requirements.txt
465+
lint-opentelemetry-instrumentation: Deprecated==1.2.14
467466

468467
distro: {[testenv]test_deps}
469468
distro: -r {toxinidir}/opentelemetry-distro/test-requirements.txt

0 commit comments

Comments
 (0)