Handle 'wheel' subcommand.
(args)
| 833 | |
| 834 | |
| 835 | def 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 | |
| 863 | def cmd_upload(args) -> bool: |
no test coverage detected