Handle 'archive' subcommand.
(args)
| 797 | |
| 798 | |
| 799 | def cmd_archive(args) -> bool: |
| 800 | """Handle 'archive' subcommand.""" |
| 801 | _print_section(f"Creating Git Archive - v{args.version}-RC{args.rc_num}") |
| 802 | skip_signing = getattr(args, "skip_signing", False) |
| 803 | |
| 804 | _verify_project_root() |
| 805 | _validate_version(args.version) |
| 806 | _check_git_working_tree() |
| 807 | |
| 808 | archive_path = _create_git_archive( |
| 809 | args.version, args.rc_num, args.output_dir, skip_signing=skip_signing |
| 810 | ) |
| 811 | print(f"\n✅ Archive created: {archive_path}") |
| 812 | return True |
| 813 | |
| 814 | |
| 815 | def cmd_sdist(args) -> bool: |
no test coverage detected