summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-07 22:08:12 +0000
committerbors <bors@rust-lang.org>2023-10-07 22:08:12 +0000
commitd252bce6553c8cc521840c9dd6b9f6cd4aedd8b0 (patch)
tree8e8204d9e2a13710b7c46589d1da1e9fec5af408
parenta1ec4f1b5da5b32811c94fe4f023b3f3e7713ec7 (diff)
parentb5bec7e1bbe79c36b8939adf922ee6ac81ac41d1 (diff)
Auto merge of #12792 - ehuss:1.73-publish, r=weihanglo0.74.0rust-1.73.0
[stable 1.73] backport publish script fixes Backports: * Add credential crates from [12649](https://github.com/rust-lang/cargo/pull/12649). I didn't realize that these crates were added as unstable dependencies in 1.73, and thus were required for publishing. `@Mark-Simulacrum` has already published the missing versions, but I am updating this just to be thorough. * Remove sleep from https://github.com/rust-lang/cargo/pull/12686. This is just so the publish doesn't take forever.
-rwxr-xr-xpublish.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/publish.py b/publish.py
index 13077a69b..87ea0e896 100755
--- a/publish.py
+++ b/publish.py
@@ -11,12 +11,16 @@
import os
import re
import subprocess
-import time
import urllib.request
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',
@@ -47,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!')