Commit ab6ddfb
Route post-merge version handling through PythonVersion
Follow-up to the rebase onto main. Removes the remaining hand-rolled
version handling around the centralized classes:
- Parse each uv catalog candidate once and sort on the parsed value,
instead of re-parsing with the throwing constructor inside the sort
comparator.
- Apply the same decorate-sort-undecorate shape to
pickCompatibleInterpreter, so sorting no longer depends on a distant
filter having already proven every version parses.
- Build the short display string with toReleaseString instead of
reaching into major/minor/patch.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6444890d-5c9c-4e8e-82b3-37a157ead6321 parent a2d44d4 commit ab6ddfb
3 files changed
Lines changed: 14 additions & 14 deletions
File tree
- src
- common/inlineScript
- managers
- builtin/inlineScript
- common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2475 | 2475 | | |
2476 | 2476 | | |
2477 | 2477 | | |
2478 | | - | |
2479 | | - | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
2480 | 2481 | | |
2481 | 2482 | | |
2482 | 2483 | | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | | - | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
2489 | 2489 | | |
2490 | 2490 | | |
2491 | 2491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments