Commit a4be23c
authored
#### captain: `uv`, `logging`, remote-Docker fixes, `gha` enhancements
- 🍀 docker/mkosi: let /work be a regular directory, and mount specific files and dirs instead
- this avoids remote-fs errors in mkosi when running against remote Docker daemon (eg: colima, Docker Desktop)
- no, one can't simply mount tmpfs to `/work/mkosi.tools` -- mkosi wants to be able to delete it
- ideally, `mkosi.output` (a misnomer?) would also be shared across invocations using a Volume (not yet though)
- 🐸 uv: pyproject.toml: add missing version field
- so one can use `uv run build.py` without worrying about deps
- 🌳 docker/mkosi: add `/cache/packages` Docker Volume for download caching
- this way we don't overwhelm Debian apt mirrors during development
- 🌱 python: use standard logging and Rich
- drop all custom logging infra, standardize on logging
- introduce Rich for logging & exception handling
- replace custom progressbar with Rich's
- 🌿 python: switch to `uv` everywhere
- switch from system-breaking `pip` to fully-contained `uv`
- let `uv` install Python, don't use Debian's -- we get a single Python version for free
- also: use Docker buildx explicitly; use plain output
- build/docs: switch from plain Python+pip to uv; mention 3.13 instead of 3.10
- consolidate usage of pyproject.toml; drop old requirements-dev.txt and requirements.txt
- docker: run in interactive mode (tty) if isatty(), pass TERM/COLUMNS env
- docker: prime `uv`'s caches during Dockerfile build
- 🌵 gha: better all around GHA logging with colors and wide output
- gha/docker: force Rich colored 160-wide console under GHA
- pass down GITHUB_ACTIONS env so children can know
- gha: reduce apt verbosity drastically with `Dpkg::Use-Pty=0`
- 🍃 gha: bump to cache restore/save v5 and download/upload-artifact v6
- so gha stops complaining about Node.js 20
- 🌴 README.md: show `uv` install instructions and fix log.py and __init__.py
31 files changed
Lines changed: 554 additions & 629 deletions
File tree
- .github/workflows
- captain
- cli
- oci
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
| 119 | + | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
| 137 | + | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
146 | | - | |
| 143 | + | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | | - | |
| 147 | + | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
156 | | - | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | | - | |
| 161 | + | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
191 | | - | |
| 189 | + | |
192 | 190 | | |
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
198 | | - | |
199 | | - | |
| 196 | + | |
| 197 | + | |
200 | 198 | | |
201 | 199 | | |
202 | | - | |
| 200 | + | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
206 | | - | |
| 204 | + | |
207 | 205 | | |
208 | 206 | | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
214 | | - | |
| 212 | + | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | | - | |
| 239 | + | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
| 245 | + | |
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
| |||
257 | 255 | | |
258 | 256 | | |
259 | 257 | | |
260 | | - | |
| 258 | + | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
267 | | - | |
268 | | - | |
| 265 | + | |
| 266 | + | |
269 | 267 | | |
270 | | - | |
271 | | - | |
| 268 | + | |
| 269 | + | |
272 | 270 | | |
273 | 271 | | |
274 | | - | |
| 272 | + | |
275 | 273 | | |
276 | 274 | | |
277 | | - | |
| 275 | + | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
341 | 339 | | |
342 | 340 | | |
343 | 341 | | |
344 | | - | |
| 342 | + | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
| 348 | + | |
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
| |||
358 | 356 | | |
359 | 357 | | |
360 | 358 | | |
361 | | - | |
362 | | - | |
| 359 | + | |
| 360 | + | |
363 | 361 | | |
364 | 362 | | |
365 | | - | |
| 363 | + | |
366 | 364 | | |
367 | 365 | | |
368 | | - | |
| 366 | + | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
395 | 393 | | |
396 | 394 | | |
397 | 395 | | |
398 | | - | |
| 396 | + | |
399 | 397 | | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | | - | |
| 402 | + | |
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
408 | 406 | | |
409 | 407 | | |
410 | | - | |
| 408 | + | |
411 | 409 | | |
412 | 410 | | |
413 | 411 | | |
414 | 412 | | |
415 | | - | |
416 | | - | |
| 413 | + | |
| 414 | + | |
417 | 415 | | |
418 | 416 | | |
419 | 417 | | |
| |||
423 | 421 | | |
424 | 422 | | |
425 | 423 | | |
426 | | - | |
| 424 | + | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
| |||
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
448 | | - | |
| 446 | + | |
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
454 | | - | |
| 452 | + | |
455 | 453 | | |
456 | 454 | | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
460 | | - | |
| 458 | + | |
461 | 459 | | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
465 | 463 | | |
466 | | - | |
| 464 | + | |
467 | 465 | | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
| 470 | + | |
473 | 471 | | |
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
477 | 475 | | |
478 | | - | |
| 476 | + | |
479 | 477 | | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
484 | | - | |
| 481 | + | |
| 482 | + | |
485 | 483 | | |
486 | 484 | | |
487 | 485 | | |
| |||
491 | 489 | | |
492 | 490 | | |
493 | 491 | | |
494 | | - | |
| 492 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | | - | |
65 | | - | |
| 60 | + | |
| 61 | + | |
66 | 62 | | |
67 | 63 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
0 commit comments