bazel-contrib/rules_python

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

Open

#1,901 创建于 2024年5月15日

在 GitHub 查看
 (0 评论) (2 反应) (0 负责人)Starlark (705 fork)auto 404
gazellehelp wanted

仓库指标

Star
 (679 star)
PR 合并指标
 (PR 指标待抓取)

描述

🚀 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

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

贡献者指南