bazel-contrib / bazel-contrib/rules_python

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

Open
#1,901 0 comments 2 reactions 0 assignees View on GitHub
gazelle help wanted
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
14h 49m
Merged PRs (30d)
81

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.