Commit a9174b5
refactor(python): switch UV provider from pip list/show to uv export
Replace the two-command approach (uv pip list + uv pip show) with a
single uv export --format requirements.txt --frozen --no-hashes
--no-dev --no-emit-project, aligning with the JS client implementation.
Also extract duplicated canonicalize() method from PythonUvProvider and
PythonPyprojectProvider into PyprojectTomlUtils, and convert UvPackage
and UvDependencyData from static final classes to records.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e8e4756 commit a9174b5
12 files changed
Lines changed: 224 additions & 420 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda
- providers
- utils
- test
- java/io/github/guacsec/trustifyda/providers
- resources/tst_manifests/pip
- pip_pyproject_toml_uv_ignore
- pip_pyproject_toml_uv
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | 338 | | |
343 | 339 | | |
344 | 340 | | |
| |||
0 commit comments