Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions run_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,11 +1239,6 @@ def _api_key(api_key: str) -> str:
help="Username to be used when authenticating via ssh",
type=str,
)
parser.add_argument(
"--no-gpg",
action="store_true",
help="Skip GPG signing",
)
args = parser.parse_args()

auth_key = args.auth_key or os.getenv("AUTH_INFO")
Expand All @@ -1264,7 +1259,8 @@ def _api_key(api_key: str) -> str:
"This release script is not compatible with the running platform"
)

no_gpg = args.no_gpg
release_tag = release_mod.Tag(args.release)
no_gpg = release_tag.as_tuple() >= (3, 14) # see PEP 761
tasks = [
Task(check_git, "Checking Git is available"),
Task(check_make, "Checking make is available"),
Expand Down Expand Up @@ -1329,10 +1325,10 @@ def _api_key(api_key: str) -> str:
]
automata = ReleaseDriver(
git_repo=args.repo,
release_tag=release_mod.Tag(args.release),
release_tag=release_tag,
api_key=auth_key,
ssh_user=args.ssh_user,
sign_gpg=not args.no_gpg,
sign_gpg=not no_gpg,
tasks=tasks,
)
automata.run()
Expand Down