MCPcopy Create free account
hub / github.com/apache/burr / cmd_archive

Function cmd_archive

scripts/apache_release.py:799–812  ·  view source on GitHub ↗

Handle 'archive' subcommand.

(args)

Source from the content-addressed store, hash-verified

797
798
799def 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
815def cmd_sdist(args) -> bool:

Callers 1

mainFunction · 0.85

Calls 5

_verify_project_rootFunction · 0.85
_validate_versionFunction · 0.85
_check_git_working_treeFunction · 0.85
_create_git_archiveFunction · 0.85
_print_sectionFunction · 0.70

Tested by

no test coverage detected