bazel-contrib / bazel-contrib/rules_python

python gazelle: ignore "binaries" when generating py_librarys

オープン
#2,443 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
gazelle
主要言語
Starlark
スター
688
フォーク
721
平均マージ
15時間 7分
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。