bazel-contrib / bazel-contrib/rules_python
Define wheel version via file/target
- 主要言語
- Starlark
- スター
- 688
- フォーク
- 721
- 平均マージ
- 15時間 7分
- マージ済み PR(30日)
- 76
説明
# 🚀 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.
コントリビューションガイド
調査の方向性
まず py_wheel ルールを見つけ、現在のバージョンがどのように設定されているかを確認します。要求されている version_file ターゲットの動作を、リンク先の maven/rules.bzl の例と比較します。生成されたターゲットが wheel のバージョンを提供でき、複数モジュールにも対応できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100