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

Function main

scripts/apache_release.py:973–1067  ·  view source on GitHub ↗

Main entry point.

()

Source from the content-addressed store, hash-verified

971
972
973def main():
974 """Main entry point."""
975 parser = argparse.ArgumentParser(description="Apache Burr Release Script (Simplified)")
976 subparsers = parser.add_subparsers(dest="command", required=True)
977
978 # archive subcommand
979 archive_parser = subparsers.add_parser("archive", help="Create git archive")
980 archive_parser.add_argument("version", help="Version (e.g., '0.41.0')")
981 archive_parser.add_argument("rc_num", help="RC number (e.g., '0')")
982 archive_parser.add_argument("--output-dir", default="dist", help="Output directory")
983 archive_parser.add_argument(
984 "--skip-signing",
985 action="store_true",
986 help="Skip GPG signing (for CI). SHA512 checksum is still generated.",
987 )
988
989 # sdist subcommand
990 sdist_parser = subparsers.add_parser("sdist", help="Build source distribution")
991 sdist_parser.add_argument("version", help="Version")
992 sdist_parser.add_argument("rc_num", help="RC number")
993 sdist_parser.add_argument("--output-dir", default="dist")
994 sdist_parser.add_argument("--skip-signing", action="store_true")
995
996 # wheel subcommand
997 wheel_parser = subparsers.add_parser("wheel", help="Build wheel")
998 wheel_parser.add_argument("version", help="Version")
999 wheel_parser.add_argument("rc_num", help="RC number")
1000 wheel_parser.add_argument("--output-dir", default="dist")
1001 wheel_parser.add_argument("--skip-signing", action="store_true")
1002
1003 # upload subcommand
1004 upload_parser = subparsers.add_parser("upload", help="Upload to SVN")
1005 upload_parser.add_argument("version", help="Version")
1006 upload_parser.add_argument("rc_num", help="RC number")
1007 upload_parser.add_argument("apache_id", help="Apache ID")
1008 upload_parser.add_argument("--artifacts-dir", default="dist")
1009 upload_parser.add_argument("--dry-run", action="store_true")
1010
1011 # verify subcommand
1012 verify_parser = subparsers.add_parser("verify", help="Verify artifacts")
1013 verify_parser.add_argument("version", help="Version")
1014 verify_parser.add_argument("rc_num", help="RC number")
1015 verify_parser.add_argument("--artifacts-dir", default="dist")
1016
1017 # all subcommand
1018 all_parser = subparsers.add_parser("all", help="Run complete workflow")
1019 all_parser.add_argument("version", help="Version")
1020 all_parser.add_argument("rc_num", help="RC number")
1021 all_parser.add_argument("apache_id", help="Apache ID")
1022 all_parser.add_argument("--output-dir", default="dist")
1023 all_parser.add_argument("--dry-run", action="store_true")
1024 all_parser.add_argument("--no-upload", action="store_true")
1025 all_parser.add_argument(
1026 "--skip-signing",
1027 action="store_true",
1028 help="Skip GPG signing (for CI). SHA512 checksum is still generated.",
1029 )
1030

Callers 1

apache_release.pyFile · 0.70

Calls 8

cmd_archiveFunction · 0.85
cmd_sdistFunction · 0.85
cmd_wheelFunction · 0.85
cmd_uploadFunction · 0.85
cmd_verifyFunction · 0.85
cmd_allFunction · 0.70
_failFunction · 0.70

Tested by

no test coverage detected