bazel-contrib / bazel-contrib/rules_python
Support PEP751 lockfile format in bzlmod
- Langage dominant
- Starlark
- Étoiles
- 688
- Forks
- 721
- Merge moyen
- 15 h 7 min
- PR mergées (30 j)
- 76
Description
After `pip lock` lands, this might become a better `requirements.txt` alternative.
References:
* pip (25.1) will export a lockfile - ETA 2 weeks https://github.com/pypa/pip/pull/13213
* packaging has landed the marker resolution (unlocks PDM, poetry, hatch) https://github.com/pypa/packaging/issues/885
* uv is tracking it as an export format https://github.com/astral-sh/uv/issues/12584
* poetry still thinking about it https://github.com/orgs/python-poetry/discussions/10322
* pip-tools keen https://github.com/jazzband/pip-tools/issues/2124
This most likely depends on #2786.
Making this work needs:
- [ ] Extra marker evaluation support (#2786).
- [ ] Parse toml to JSON using some predefined interpreter (set with #2747 `.defaults`).
- [ ] Map to the output like what `parse_requirements` is returning for easy plumbing.
- [ ] Call the API for parsing `py.lock` something like `pip.from_lock`.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par le travail d’évaluation des extra marker dans #2786 et par le paramètre d’interpréteur prédéfini de #2747. Suivez la manière dont parse_requirements mappe l’entrée pour Plumbing, puis déterminez comment py.lock TOML doit devenir du JSON et être exposé via une API telle que pip.from_lock ; le travail est terminé lorsque le lockfile PEP 751 peut être analysé et intégré à bzlmod.
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é
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100