bazel-contrib / bazel-contrib/rules_python

docs: update py_wheel to show prefix stripping

Offen
#3,218 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
packaging type: documentation
Vorherrschende Sprache
Starlark
Sterne
688
Forks
721
Ø Merge
15 Std. 7 Min.
Gemergte PRs (30 T.)
76

Beschreibung

While talking to a user, they didn't realize py_wheel had a prefix-stripping ability.

With src-based layouts being common, I think it makes sense to update the example to show how to transform it into the desired wheel output. (This same problem would occur for a repo with multiple sub-projects, too).

Prompt:

```
Act as an expert in Sphinx, MyST, rules_python, Starlark, Bazel.

Update the py_wheel how to guide to show how to transform files using a src-layout.

Use the py_wheel.strip_path_prefixes arg to do this.
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Locate the py_wheel how-to guide and inspect its current example for a src-based layout. Use the documented py_wheel.strip_path_prefixes argument to show the transformation to the desired wheel output; done when the guide clearly demonstrates the resulting layout.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
build-system, documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.