@@ -194,7 +194,6 @@ def __init__(
194194 ssh_user : str ,
195195 sign_gpg : bool ,
196196 ssh_key : str | None = None ,
197- security_release : bool = False ,
198197 first_state : Task | None = None ,
199198 ) -> None :
200199 self .tasks = tasks
@@ -221,8 +220,6 @@ def __init__(
221220 self .db ["ssh_key" ] = ssh_key
222221 if not self .db .get ("sign_gpg" ):
223222 self .db ["sign_gpg" ] = sign_gpg
224- if not self .db .get ("security_release" ):
225- self .db ["security_release" ] = security_release
226223
227224 if not self .db .get ("release" ):
228225 self .db ["release" ] = release_tag
@@ -236,7 +233,6 @@ def __init__(
236233 print (f"- SSH key: { self .db ['ssh_key' ] or 'Default' } " )
237234 print (f"- python.org API key: { self .db ['auth_info' ]} " )
238235 print (f"- Sign with GPG: { self .db ['sign_gpg' ]} " )
239- print (f"- Security release: { self .db ['security_release' ]} " )
240236 print ()
241237
242238 def checkpoint (self ) -> None :
@@ -412,9 +408,6 @@ def check_cpython_repo_is_clean(db: ReleaseShelf) -> None:
412408
413409def check_magic_number (db : ReleaseShelf ) -> None :
414410 release_tag = db ["release" ]
415- if release_tag .major == 3 and release_tag .minor <= 13 :
416- return
417-
418411 if release_tag .is_final or release_tag .is_release_candidate :
419412
420413 def out (msg : str ) -> None :
@@ -946,34 +939,19 @@ def wait_until_all_files_are_in_folder(db: ReleaseShelf) -> None:
946939 are_windows_files_there = f"python-{ release } .exe" in all_files
947940 are_macos_files_there = f"python-{ release } -macos11.pkg" in all_files
948941 are_linux_files_there = f"Python-{ release } .tgz" in all_files
949-
950- if db ["security_release" ]:
951- # For security releases, only check Linux files
952- are_all_files_there = are_linux_files_there
953- else :
954- # For regular releases, check all platforms
955- are_all_files_there = (
956- are_linux_files_there
957- and are_windows_files_there
958- and are_macos_files_there
959- )
942+ are_all_files_there = (
943+ are_linux_files_there and are_windows_files_there and are_macos_files_there
944+ )
960945
961946 if not are_all_files_there :
962947 linux_tick = "✅" if are_linux_files_there else "❌"
963948 windows_tick = "✅" if are_windows_files_there else "❌"
964949 macos_tick = "✅" if are_macos_files_there else "❌"
965- if db ["security_release" ]:
966- print (
967- f"\r Waiting for files: Linux { linux_tick } (security release mode - only checking Linux) " ,
968- flush = True ,
969- end = "" ,
970- )
971- else :
972- print (
973- f"\r Waiting for files: Linux { linux_tick } Windows { windows_tick } Mac { macos_tick } " ,
974- flush = True ,
975- end = "" ,
976- )
950+ print (
951+ f"\r Waiting for files: Linux { linux_tick } Windows { windows_tick } Mac { macos_tick } " ,
952+ flush = True ,
953+ end = "" ,
954+ )
977955 time .sleep (1 )
978956 print ()
979957
@@ -1307,13 +1285,6 @@ def _api_key(api_key: str) -> str:
13071285 help = "Path to the SSH key file to use for authentication" ,
13081286 type = str ,
13091287 )
1310- parser .add_argument (
1311- "--security-release" ,
1312- dest = "security_release" ,
1313- action = "store_true" ,
1314- default = False ,
1315- help = "Indicate this is a security release (only checks for Linux files)" ,
1316- )
13171288 args = parser .parse_args ()
13181289
13191290 auth_key = args .auth_key or os .getenv ("AUTH_INFO" )
@@ -1409,7 +1380,6 @@ def _api_key(api_key: str) -> str:
14091380 ssh_user = args .ssh_user ,
14101381 sign_gpg = not no_gpg ,
14111382 ssh_key = args .ssh_key ,
1412- security_release = args .security_release ,
14131383 tasks = tasks ,
14141384 )
14151385 automata .run ()
0 commit comments