Commit 0ab6c04
committed
Fix: Unable to run ADOT Python unit tests with latest Tox release
Tox 3.27.1 was released on November 14, 2022 — before Python 3.12 (October 2023) and Python 3.13 (October 2024) — and does not officially support either version.
This PR resolves the blocking issue caused by using the latest Tox release.
Changes:
- Updated tox.ini to pass valid VCS requirement strings to pip and avoid shell/INI parsing issues.
- Removed stray spaces before '@' in pip VCS requirement specifiers.
- Removed unnecessary wrapping quotes so strings are not passed with quote characters.
- Escaped the '#' in INI fragments to ensure the tox/INI parser preserves pip fragments (e.g., `#egg=...`).
Tested with:
```bash
python -m venv .venv
source .venv/bin/activate
pip install tox
tox -e lint
tox -e spellcheck
tox -e 3.9-test-aws-opentelemetry-distro
tox -e 3.10-test-aws-opentelemetry-distro
tox -e 3.11-test-aws-opentelemetry-distro
tox -e 3.12-test-aws-opentelemetry-distro
tox -e 3.13-test-aws-opentelemetry-distro
```1 parent 533fafd commit 0ab6c04
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments