@@ -971,8 +971,38 @@ def start_build_release(db: ReleaseShelf) -> None:
971971 )
972972 print ()
973973
974- if not ask_question ("Have you started the build-release workflow?" ):
975- raise ReleaseException ("build-release workflow must be started" )
974+
975+ def start_windows_build (db : ReleaseShelf ) -> None :
976+ commit_sha = get_commit_sha (db ["release" ].gitname , db ["git_repo" ])
977+ origin_remote_url = get_origin_remote_url (db ["git_repo" ])
978+ origin_remote_github_owner = extract_github_owner (origin_remote_url )
979+
980+ print ("Start the Windows build:" )
981+ print (
982+ "Go to\t https://dev.azure.com/Python/cpython/_build?definitionId=21&_a=summary"
983+ )
984+ print ("Click:\t 'Run pipeline'" )
985+ print ()
986+ print ("Pipeline version" )
987+ print ()
988+ print ("Select pipeline version by branch/tag:\t leave 'main'" )
989+ print ("Commit:\t leave blank" )
990+ print ()
991+ print ("Pipeline version" )
992+ print ()
993+ print (f"Git remote:\t { origin_remote_github_owner } " )
994+ print ("If Other, specify Git remote:\t leave 'python'" )
995+ print (f"Git tag:\t { db ['release' ].gitname } " )
996+ print (f"Git commit:\t { commit_sha } " )
997+ print ("[x] Publish release" )
998+ print ("Check the version specific boxes" )
999+ print ()
1000+ print ("Click:\t 'Next: Resources'" )
1001+ print ("Click:\t 'Run'" )
1002+ print ()
1003+
1004+ if not ask_question ("Have you started the Windows build?" ):
1005+ raise ReleaseException ("Windows build must be started" )
9761006
9771007
9781008def send_email_to_platform_release_managers (db : ReleaseShelf ) -> None :
@@ -1447,6 +1477,7 @@ def _api_key(api_key: str) -> str:
14471477 Task (create_tag , "Create tag" ),
14481478 Task (push_to_local_fork , "Push new tags and branches to private fork" ),
14491479 Task (start_build_release , "Start the build-release workflow" ),
1480+ Task (start_windows_build , "Start the Windows build" ),
14501481 Task (
14511482 send_email_to_platform_release_managers ,
14521483 "Platform release managers have been notified of the commit SHA" ,
0 commit comments