Make it easier to retry in upload-pypi script
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Recently the misc/upload-pypi.py script failed several times while I was uploading a release. It succeeded in uploading some wheels, but it failed at some point. It's possible to run it multiple times to work around the issue, but this is not ideal since it repeats all the work. Here some ideas about how to make this better:
- If upload fails, ask if the user wants to try uploading again. This would help by not having to download the wheels again.
- If upload fails, ask if the user wants to try uploading again, but only upload the wheels which haven't been successfully uploaded so far.
- Automatically retry, without asking for the pypi token/secret again.
Any of these would be an improvement over the current situation, but the first option might not help much if the script will just repeatedly fail at some point.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da misc/upload-pypi.py e traccia come lo script carica le wheels, gestisce i fallimenti e ottiene il token PyPI. Chiarisci con i maintainer quale comportamento di retry implementare; al termine, una release fallita dovrebbe poter riprendere senza ripetere il lavoro completato con successo né richiedere nuovamente le credenziali senza necessità.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- release
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100