bazel-contrib / bazel-contrib/rules_python

Define wheel version via file/target

Aperta
#1,804 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Starlark
Stelle
688
Fork
721
Merge medio
15h 7m
PR unite (30g)
76

Descrizione

# 🚀 feature request

### Relevant Rules

* py_wheel

### Description

I would like use wheel version generated by other target.

### Describe the solution you'd like

```

my_version_generator(
name = "version"
...
)

py_wheel(
name = "foo",
version_file = ":version",
...
)
```

Solution should be a bit similiar to https://github.com/vaticle/bazel-distribution/blob/ebb4a9b342ec442c427705ec6a7919cce4c35c6e/maven/rules.bzl#L258

### Describe alternatives you've considered

* Generating version before build and passing via variable in volatile status. Solution is inconvenient for multiple modules and is against bazel design.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating the py_wheel rule and reviewing how its current version is configured. Compare the requested version_file target behavior with the linked maven/rules.bzl example; done means a generated target can provide the wheel version, including support for multiple modules.

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

Valutazione

Stack tecnologico
python
Ambito
build-system
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.