bazel-contrib / bazel-contrib/rules_python
Define wheel version via file/target
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 721
- 平均合并
- 15 小时 7 分钟
- 30 天内合并 PR
- 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