bazel-contrib / bazel-contrib/rules_python

Add a library that defines a `Label` class in python

Ouverte
#1,601 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
help wanted
Langage dominant
Starlark
Étoiles
688
Forks
721
Merge moyen
15 h 7 min
PR mergées (30 j)
76

Description

# 🚀 feature request

### Description

I would love `rules_python` to expose a library similar to [@rules_rust//util/label](https://github.com/bazelbuild/rules_rust/blob/0.32.0/util/label/label.rs) which defines a validated representation of a [Label](https://bazel.build/rules/lib/builtins/Label) for users to use in their code.

It'd be fantastic if the interface was a class (`Label`) that did validation on `__init__`.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by comparing the requested interface with @rules_rust//util/label and the Bazel Label documentation linked in the issue. Define the scope of validation and where the new Python library belongs, then verify that it exposes a Label class whose constructor validates its input.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
build-system
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.