Commit 630723c
committed
Pin requires-python in poetry test project to match the conda env
Poetry's resolver was rejecting torchvision 0.27.0 because the
project's open-ended `requires-python = ">=3.11"` (generated by
`poetry new`) had to be satisfied across every Python in that range,
and torchvision 0.27.0 excludes Python 3.14.1 specifically:
- torchvision requires Python !=3.14.1,>=3.10
- test-poetry requires Python >=3.11
- 3.14.1 is in the project range but excluded by torchvision
- therefore no version of torchvision can be locked
This was only visible after dropping `--quiet` in the prior commit.
Narrow the project's requires-python to ">=3.11,<3.12" (or whatever
MATRIX_PYTHON_VERSION resolves to), which both unblocks resolution
and makes the test reflect the actual runtime we set up in conda.
Authored with Claude Code.1 parent 00b27d8 commit 630723c
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
| |||
0 commit comments