@@ -248,9 +248,10 @@ def __init__(
248248 self .db ["ssh_key" ] = ssh_key
249249 if not self .db .get ("sign_gpg" ):
250250 self .db ["sign_gpg" ] = sign_gpg
251-
252251 if not self .db .get ("release" ):
253252 self .db ["release" ] = release_tag
253+ if not self .db .get ("security_release" ):
254+ self .db ["security_release" ] = self .db ["release" ].is_security_release
254255
255256 print ("Release data: " )
256257 print (f"- Branch: { release_tag .branch } " )
@@ -260,6 +261,7 @@ def __init__(
260261 print (f"- SSH username: { self .db ['ssh_user' ]} " )
261262 print (f"- SSH key: { self .db ['ssh_key' ] or 'Default' } " )
262263 print (f"- Sign with GPG: { self .db ['sign_gpg' ]} " )
264+ print (f"- Security release: { self .db ['security_release' ]} " )
263265 print ()
264266
265267 def checkpoint (self ) -> None :
@@ -1000,18 +1002,29 @@ def wait_until_all_files_are_in_folder(db: ReleaseShelf) -> None:
10001002 are_windows_files_there = f"python-{ release } .exe" in all_files
10011003 are_macos_files_there = f"python-{ release } -macos11.pkg" in all_files
10021004 are_linux_files_there = f"Python-{ release } .tgz" in all_files
1003- are_all_files_there = (
1004- are_linux_files_there and are_windows_files_there and are_macos_files_there
1005- )
1005+
1006+ if db ["security_release" ]:
1007+ # For security releases, only check Linux files
1008+ are_all_files_there = are_linux_files_there
1009+ else :
1010+ # For regular releases, check all platforms
1011+ are_all_files_there = (
1012+ are_linux_files_there
1013+ and are_windows_files_there
1014+ and are_macos_files_there
1015+ )
1016+
10061017 if not are_all_files_there :
10071018 linux_tick = "✅" if are_linux_files_there else "❌"
10081019 windows_tick = "✅" if are_windows_files_there else "❌"
10091020 macos_tick = "✅" if are_macos_files_there else "❌"
1010- print (
1011- f"\r Waiting for files: Linux { linux_tick } Windows { windows_tick } Mac { macos_tick } " ,
1012- flush = True ,
1013- end = "" ,
1014- )
1021+
1022+ if db ["security_release" ]:
1023+ waiting = f"\r Waiting for files: Linux { linux_tick } (security release - only checking Linux)"
1024+ else :
1025+ waiting = f"\r Waiting for files: Linux { linux_tick } Windows { windows_tick } Mac { macos_tick } "
1026+
1027+ print (waiting , flush = True , end = "" )
10151028 time .sleep (1 )
10161029 print ()
10171030
0 commit comments