bazel-contrib / bazel-contrib/rules_python
[FR] (gazelle) Use specified python version to determine whether a module is a stdlib
- 主要言語
- Starlark
- スター
- 688
- フォーク
- 721
- 平均マージ
- 15時間 7分
- マージ済み PR(30日)
- 76
説明
# 🚀 feature request
### Relevant Rules
At present, we judge whether a module is a standard library through the system interpreter, which is uncontrollable. After https://github.com/bazelbuild/rules_python/pull/1895 landing, we have the ability to use a specific python version of std list in this analysis.
### Description
A clear and concise description of the problem or missing capability...
### Describe the solution you'd like
Maybe two ways:
1. A new directive to specify the python version
2. Read `.manifest.pip_repository` from `gazelle_python.yaml` and find python version from `MODULE.bazel`?
### Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?
コントリビューションガイド
調査の方向性
Start by reviewing the referenced rules_python pull request 1895, then inspect gazelle_python.yaml, MODULE.bazel, and the .manifest.pip_repository data it mentions. Determine how a specified Python version could reach gazelle's stdlib analysis; done means module classification uses that version rather than the system interpreter.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100