bazel-contrib / bazel-contrib/rules_python

doc: howto configure bazel downloader with pip.parse

Aperta
#3,102 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
type: documentation
Lingua principale
Starlark
Stelle
688
Fork
721
Merge medio
15h 7m
PR unite (30g)
76

Descrizione

I think I've seen this question a few times: I want to customize where wheels are downloaded from. What parameters do I set in (pip.parse or compile_pip_requirements) to do that?

When the answer is non-obvious: use bazel downloader to redirect the url requests.

This is mentioned in the regular pypi docs, but only briefly; it's easy to overlook.

We should give an example in the docs on how to do this.

A dedicated "how to" sub-directory of docs is probably a good idea. It'll be a good place to put prose documentation that draws people in, and we can easily expand it with arbitrary topics and content without it feeling out of place or bloating the more dry/technical/reference docs.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reviewing the existing PyPI documentation and the references to pip.parse and compile_pip_requirements. Add a how-to example showing how Bazel downloader redirects wheel URL requests, and organize it in a dedicated how-to documentation area if appropriate; done means the configuration is clearly documented for users customizing download locations.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
Mezza giornata
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.