Commit 74bb2d3
committed
Fix Python 3.12 container tests and simplify CI matrix
- Add conditional symlink fix for Python 3.12 on Alpine Linux
- Python 3.12 expects linux-gnu extension suffix, but Alpine provides linux-musl
- Create symlinks from *-linux-gnu.so to *-linux-musl.so for C extensions
- Fix is only applied when PYTHON_VERSION="3.12" to avoid affecting other versions
- Fix dockerfile stage reference: FROM beta AS pro → FROM pre AS pro
- Completes the beta→pre rename that was missed on line 108
- Simplify GitHub Actions Python version matrix
- Remove get-python-version job from both test.yml and docker-publish.yml
- Hardcode Python versions as `['3.12', '3.13']` to avoid duplication
- Previously, 3.13 was tested twice (hardcoded + from .python-version file)
- Makes workflows cleaner and easier to understand
This fixes the `ModuleNotFoundError` for `pydantic_core._pydantic_core in`
Docker containers running Python 3.12, while maintaining compatibility
with other Python versions.
Signed-off-by: Phillip Sitbon <phillip.sitbon@gmail.com>1 parent 2e3a37c commit 74bb2d3
3 files changed
+14
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 16 | + | |
31 | 17 | | |
32 | 18 | | |
33 | 19 | | |
34 | 20 | | |
35 | 21 | | |
36 | 22 | | |
37 | 23 | | |
38 | | - | |
| 24 | + | |
39 | 25 | | |
40 | 26 | | |
41 | 27 | | |
| |||
101 | 87 | | |
102 | 88 | | |
103 | 89 | | |
104 | | - | |
| 90 | + | |
105 | 91 | | |
106 | 92 | | |
107 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 10 | | |
24 | | - | |
25 | 11 | | |
26 | 12 | | |
27 | 13 | | |
28 | | - | |
| 14 | + | |
29 | 15 | | |
30 | 16 | | |
31 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
101 | | - | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
0 commit comments