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

Function cmd_wheel

scripts/apache_release.py:835–860  ·  view source on GitHub ↗

Handle 'wheel' subcommand.

(args)

Source from the content-addressed store, hash-verified

833
834
835def cmd_wheel(args) -> bool:
836 """Handle 'wheel' subcommand."""
837 _print_section(f"Building Wheel - v{args.version}-RC{args.rc_num}")
838 skip_signing = getattr(args, "skip_signing", False)
839
840 _verify_project_root()
841 _validate_version(args.version)
842
843 wheel_path = _build_wheel_from_current_dir(args.version, args.output_dir)
844
845 print("\nVerifying wheel with twine...")
846 if not _verify_wheel_with_twine(wheel_path):
847 _fail("Twine verification failed!")
848
849 print("\nVerifying wheel contents...")
850 if not _verify_wheel(wheel_path):
851 _fail("Wheel verification failed!")
852
853 print("\nSigning wheel..." if not skip_signing else "\nChecksumming wheel...")
854 _sign_artifact(wheel_path, skip_signing=skip_signing)
855
856 if not _verify_artifact_complete(wheel_path, skip_signing=skip_signing):
857 _fail("Wheel signature/checksum verification failed!")
858
859 print(f"\n✅ Wheel created and verified: {os.path.basename(wheel_path)}")
860 return True
861
862
863def cmd_upload(args) -> bool:

Callers 1

mainFunction · 0.85

Calls 9

_verify_project_rootFunction · 0.85
_validate_versionFunction · 0.85
_verify_wheel_with_twineFunction · 0.85
_verify_wheelFunction · 0.85
_sign_artifactFunction · 0.85
_print_sectionFunction · 0.70
_failFunction · 0.70

Tested by

no test coverage detected