Skip to content

Commit

Permalink
Auto merge of rust-lang#12792 - ehuss:1.73-publish, r=weihanglo
Browse files Browse the repository at this point in the history
[stable 1.73] backport publish script fixes

Backports:

* Add credential crates from [12649](rust-lang#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 rust-lang#12686. This is just so the publish doesn't take forever.
  • Loading branch information
bors committed Oct 7, 2023
2 parents a1ec4f1 + b5bec7e commit d252bce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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!')


Expand Down

0 comments on commit d252bce

Please sign in to comment.