Skip to content

Commit d252bce

Browse files
committed
Auto merge of #12792 - ehuss:1.73-publish, r=weihanglo
[stable 1.73] backport publish script fixes Backports: * Add credential crates from [12649](#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 #12686. This is just so the publish doesn't take forever.
2 parents a1ec4f1 + b5bec7e commit d252bce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

publish.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
import os
1212
import re
1313
import subprocess
14-
import time
1514
import urllib.request
1615
from urllib.error import HTTPError
1716

1817

1918
TO_PUBLISH = [
19+
'credential/cargo-credential',
20+
'credential/cargo-credential-libsecret',
21+
'credential/cargo-credential-wincred',
22+
'credential/cargo-credential-1password',
23+
'credential/cargo-credential-macos-keychain',
2024
'crates/cargo-platform',
2125
'crates/cargo-util',
2226
'crates/crates-io',
@@ -47,13 +51,9 @@ def maybe_publish(path):
4751

4852
def main():
4953
print('Starting publish...')
50-
for i, path in enumerate(TO_PUBLISH):
51-
if maybe_publish(path):
52-
if i < len(TO_PUBLISH)-1:
53-
# Sleep to allow the index to update. This should probably
54-
# check that the index is updated, or use a retry loop
55-
# instead.
56-
time.sleep(5)
54+
for path in TO_PUBLISH:
55+
maybe_publish(path)
56+
5757
print('Publish complete!')
5858

5959

0 commit comments

Comments
 (0)