bazel-contrib / bazel-contrib/rules_python
python gazelle: ignore "binaries" when generating py_librarys
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 721
- 平均合并
- 15 小时 7 分钟
- 30 天内合并 PR
- 76
描述
# 🚀 feature request
### Relevant Rules
- rules_python
### Description
A clear and concise description of the problem or missing capability...
Add a config for python gazelle module to ignore "binary" files from the`srcs` of the `py_library` generated code.
By "binary" file I mean the logic that gazelle uses to define what src is used by a generated `py_binary`
### Describe the solution you'd like
If you have a solution in mind, please describe it.
### Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?
贡献指南
调研方向
首先定位 Python Gazelle 模块,以及确定生成的 py_binary 和 py_library 目标源文件的逻辑。定义所请求配置对二进制文件的行为,并验证生成的 py_library srcs 会省略这些文件,同时 py_binary 的源文件检测保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100