bazel-contrib / bazel-contrib/rules_python

[FR] (gazelle) Use specified python version to determine whether a module is a stdlib

Đang mở
#1,901 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
gazelle help wanted
Ngôn ngữ chính
Starlark
Star
688
Fork
721
Merge trung bình
15 giờ 7 phút
Pull request đã merge (30 ngày)
76

Mô tả

# 🚀 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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
build-system
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.