From 8ef08e87003099b26acdd31e3ab5edb6d37191fd Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 7 Oct 2023 14:15:33 -0700 Subject: [PATCH 1/2] [stable 1.73] backport credential publish --- publish.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/publish.py b/publish.py index 13077a69b..06993bca2 100755 --- a/publish.py +++ b/publish.py @@ -17,6 +17,11 @@ from urllib.error import HTTPError TO_PUBLISH = [ + 'credential/cargo-credential', + 'credential/cargo-credential-libsecret', + 'credential/cargo-credential-wincred', + 'credential/cargo-credential-1password', + 'credential/cargo-credential-macos-keychain', 'crates/cargo-platform', 'crates/cargo-util', 'crates/crates-io', From b5bec7e1bbe79c36b8939adf922ee6ac81ac41d1 Mon Sep 17 00:00:00 2001 From: bors Date: Mon, 18 Sep 2023 16:32:49 +0000 Subject: [PATCH 2/2] Auto merge of #12686 - Turbo87:publish-script, r=epage publish.py: Remove obsolete `sleep()` calls `cargo` waits for the package to appear in the index by default these days, so these obsolete extra `sleep()` calls are just making the publish process slower now without any advantages. see https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/publish.2Epy --- publish.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/publish.py b/publish.py index 06993bca2..87ea0e896 100755 --- a/publish.py +++ b/publish.py @@ -11,7 +11,6 @@ import os import re import subprocess -import time import urllib.request from urllib.error import HTTPError @@ -52,13 +51,9 @@ def maybe_publish(path): def main(): print('Starting publish...') - for i, path in enumerate(TO_PUBLISH): - if maybe_publish(path): - if i < len(TO_PUBLISH)-1: - # Sleep to allow the index to update. This should probably - # check that the index is updated, or use a retry loop - # instead. - time.sleep(5) + for path in TO_PUBLISH: + maybe_publish(path) + print('Publish complete!')