File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1239,11 +1239,6 @@ def _api_key(api_key: str) -> str:
12391239 help = "Username to be used when authenticating via ssh" ,
12401240 type = str ,
12411241 )
1242- parser .add_argument (
1243- "--no-gpg" ,
1244- action = "store_true" ,
1245- help = "Skip GPG signing" ,
1246- )
12471242 args = parser .parse_args ()
12481243
12491244 auth_key = args .auth_key or os .getenv ("AUTH_INFO" )
@@ -1264,7 +1259,8 @@ def _api_key(api_key: str) -> str:
12641259 "This release script is not compatible with the running platform"
12651260 )
12661261
1267- no_gpg = args .no_gpg
1262+ release_tag = release_mod .Tag (args .release )
1263+ no_gpg = release_tag .as_tuple () >= (3 , 14 ) # see PEP 761
12681264 tasks = [
12691265 Task (check_git , "Checking Git is available" ),
12701266 Task (check_make , "Checking make is available" ),
@@ -1329,10 +1325,10 @@ def _api_key(api_key: str) -> str:
13291325 ]
13301326 automata = ReleaseDriver (
13311327 git_repo = args .repo ,
1332- release_tag = release_mod . Tag ( args . release ) ,
1328+ release_tag = release_tag ,
13331329 api_key = auth_key ,
13341330 ssh_user = args .ssh_user ,
1335- sign_gpg = not args . no_gpg ,
1331+ sign_gpg = not no_gpg ,
13361332 tasks = tasks ,
13371333 )
13381334 automata .run ()
You can’t perform that action at this time.
0 commit comments