bazel-contrib / bazel-contrib/rules_python
Support PEP751 lockfile format in bzlmod
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 721
- 平均合并
- 15 小时 7 分钟
- 30 天内合并 PR
- 76
描述
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`.
贡献指南
调研方向
从 #2786 中的 extra marker 评估工作和 #2747 中预定义的解释器设置开始。跟踪 parse_requirements 如何为 Plumbing 映射输入,然后确定如何将 py.lock TOML 转换为 JSON,并通过类似 pip.from_lock 的 API 对外提供;完成标准是能够解析 PEP 751 lockfile 并将其集成到 bzlmod 中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100