Skip to content

Commit b811715

Browse files
authored
Remove one-off partial update_lib migration modes (#9394)
Keep whole-file and package migration with existing marker, doctest and explicit customization preservation. Retire copy-test and selected assignment/function/export import machinery rather than maintaining extra partial-file update paths. Remove the separate historical-file deletion command after its migration use. This does not delete any Lib files or make whole-directory migration prune destination-only files; future obsolete-file removal still needs explicit review. Preserve dependency handling and contributor content-comparison fixes. All 103 retained synthetic migration, patch and copy-library tooling tests pass under an isolated bounded host Python harness. No RustPython runtime or migrated Lib source was executed. Assisted-by: OpenAI Codex:model version unavailable Co-authored-by: youknowdot <[email protected]>
1 parent 60bd845 commit b811715

6 files changed

Lines changed: 0 additions & 1960 deletions

File tree

‎scripts/update_lib/__main__.py‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
python scripts/update_lib migrate cpython/Lib/test/test_foo.py
99
python scripts/update_lib patches --from Lib/test/foo.py --to cpython/Lib/test/foo.py
1010
python scripts/update_lib auto-mark Lib/test/test_foo.py
11-
python scripts/update_lib copy-test SOURCE DESTINATION --test ClassName.method_name --source-sha256 HASH --destination-sha256 HASH
1211
"""
1312

1413
import argparse
@@ -50,11 +49,6 @@ def main(argv: list[str] | None = None) -> int:
5049
help="Copy library file/directory from CPython (delete existing first)",
5150
add_help=False,
5251
)
53-
subparsers.add_parser(
54-
"copy-test",
55-
help="Copy one complete canonical test from hash-pinned inputs",
56-
add_help=False,
57-
)
5852
subparsers.add_parser(
5953
"deps",
6054
help="Show dependency information for a module",
@@ -78,11 +72,6 @@ def main(argv: list[str] | None = None) -> int:
7872

7973
return copy_lib_main(remaining)
8074

81-
if args.command == "copy-test":
82-
from update_lib.cmd_copy_test import main as copy_test_main
83-
84-
return copy_test_main(remaining)
85-
8675
if args.command == "migrate":
8776
from update_lib.cmd_migrate import main as migrate_main
8877

‎scripts/update_lib/cmd_copy_test.py‎

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)