bazel-contrib / bazel-contrib/rules_python

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

Abierto
#1,901 0 comentarios 2 reacciones 0 asignados Ver en GitHub
gazelle help wanted
Lenguaje dominante
Starlark
Estrellas
688
Forks
721
Merge medio
15 h 7 min
PR fusionados (30 d)
76

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
build-system
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.