Commit d5db6ad
committed
feat: add 'fromage package resolve' subcommand
The new `package resolve` subcommand is designed to debug Fromager
settings and resolver properties. It compares the results from
Fromager's internal resolver with a simple PyPI lookup. It prints
informations like resolver configuration, detected versions and versions
with sdists and wheels on PyPI.
```console
$ fromager --variant cpu package resolve 'fromager~=0.68.0'
resolving requirement for 'fromager~=0.68.0' (variant: cpu)
Package uses standard settings.
- sdist server url: https://pypi.org/simple
- resolver includes sdists: True
- resolver includes wheels: False
- wheel server url: None
- download url: None
- prebuilt wheel: False
- package is not constrained by '--constraints-file'
Using distribution type: default (sdists: True, wheels: False)
get_resolver_provider returns provider 'PyPIProvider'
found 2 Fromager candidates with 2 unique versions for req: 'fromager~=0.68.0', Fromager constraint: 'None'
- most recent release: 2025-10-21 14:37:12+02:00
- Fromager versions: 0.68.0, 0.68.1
found 2 versions on PyPI for req: 'fromager~=0.68.0', Fromager constraint: 'None'
- most recent PyPI release: 2025-10-21 14:37:12+02:00
- package has purelib wheels (pure Python code)
- PyPI versions: 0.68.0, 0.68.1
```
Signed-off-by: Christian Heimes <cheimes@redhat.com>1 parent 6889433 commit d5db6ad
6 files changed
Lines changed: 475 additions & 136 deletions
File tree
- src/fromager/commands
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 35 | + | |
| 36 | + | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
| |||
197 | 188 | | |
198 | 189 | | |
199 | 190 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
216 | 194 | | |
217 | 195 | | |
218 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 2 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 3 | + | |
| 4 | + | |
20 | 5 | | |
21 | 6 | | |
22 | | - | |
| 7 | + | |
23 | 8 | | |
24 | 9 | | |
25 | | - | |
26 | | - | |
| 10 | + | |
| 11 | + | |
27 | 12 | | |
28 | 13 | | |
29 | 14 | | |
| |||
42 | 27 | | |
43 | 28 | | |
44 | 29 | | |
45 | | - | |
| 30 | + | |
46 | 31 | | |
47 | | - | |
| 32 | + | |
48 | 33 | | |
49 | 34 | | |
50 | 35 | | |
51 | 36 | | |
52 | 37 | | |
53 | 38 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
103 | 48 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
0 commit comments