Commit 3f779bf
committed
ci: fix tomllib ModuleNotFoundError on Python 3.10
Root cause: `tomllib` is stdlib only in Python 3.11+. The CI matrix
includes 3.10, so `import tomllib` blew up with ModuleNotFoundError
in the "Validate pyproject" step on the 3.10 leg.
Fix:
- ci.yml + publish.yml: try `tomllib`, fall back to `tomli`.
- publish.yml: add explicit `pip install tomli` step (publish runs on
3.12 so tomllib usually works, but the fallback is now safe either way).
No code changes; CI/publish only.1 parent 398a333 commit 3f779bf
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments