Commit ffa291c
authored
Fix: Unable to run ADOT Python unit tests with latest Tox release (#521)
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 4.30.3.
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
```
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.3 files changed
+13
-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 | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 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