Repository navigation
Commit 92ac70b
Sweep core utils/python_{lock,script}.rs (#1990)
* Start sweep of utils/python_{lock,script}.rs
Assisted-by: Claude Code:claude-opus-5-5
* Sweep utils/python_lock.rs
Delete the dead complete_python_lock_metadata pair and PythonLockProbe:
the hosted wheel gate now asks PythonLockSession::plan, which runs the
same planner, so the probe-equivalence test goes with it. One names /
repoint helper replaces five name checks and four repoint copies, the
planner reuses lock_package_collection, and one artifact_filename
replaces two copies. python_lock_paths is one iterator chain.
The direct-URL test's "ours" case asserted is_ok(), which also passed
on Ok(None); it now requires the rewritten lock. The five test modules
are one. Bare issue numbers and a banner are gone.
Assisted-by: Claude Code:claude-opus-5-5
* Sweep utils/python_script.rs
One tool_uv reader replaces three [tool.uv] chains, and one
declares_directly replaces the three "is this a direct dependency"
copies in hosted_override_pins, wires_through_override and the two
metadata rewriters. push_hosted_override is inlined into its one
caller and is_hosted_override is private.
refuse_uv_no_sources / refuse_uv_no_binary lose their script
parameter: every caller passed None (scripts use the *_script_*
variants). The SourcesLayout doc is trimmed to its why, bare issue
numbers are gone, and a unit test now covers no-binary's combine rules.
Assisted-by: Claude Code:claude-opus-5-5
* Tighten review findings in the python sweep
The direct-URL test's "ours" case now requires the artifact digest to
replace the fixture's, since the input already held the URL. Rename
rewrite_project_metadata's local that shadowed tool_uv, and keep the
SourcesLayout caveat about transitive override reverts.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 318193c commit 92ac70b
5 files changed
Lines changed: 226 additions & 531 deletions
File tree
- crates/socket-patch-core/src
- hosted
- patch/redirect
- utils
- vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
1349 | | - | |
| 1348 | + | |
| 1349 | + | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
1374 | | - | |
| 1374 | + | |
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
1383 | 1387 | | |
1384 | 1388 | | |
1385 | 1389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6576 | 6576 | | |
6577 | 6577 | | |
6578 | 6578 | | |
6579 | | - | |
6580 | 6579 | | |
6581 | 6580 | | |
6582 | 6581 | | |
6583 | 6582 | | |
6584 | 6583 | | |
6585 | 6584 | | |
6586 | | - | |
6587 | 6585 | | |
6588 | 6586 | | |
6589 | 6587 | | |
| |||
0 commit comments