bazel-contrib / bazel-contrib/rules_python
Support PEP751 lockfile format in bzlmod
- Ngôn ngữ chính
- Starlark
- Star
- 688
- Fork
- 721
- Merge trung bình
- 15 giờ 7 phút
- Pull request đã merge (30 ngày)
- 76
Mô tả
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`.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với công việc đánh giá extra marker trong #2786 và thiết lập trình thông dịch được định nghĩa sẵn từ #2747. Truy vết cách parse_requirements ánh xạ đầu vào cho Plumbing, sau đó xác định cách py.lock TOML phải trở thành JSON và được cung cấp thông qua một API như pip.from_lock; hoàn thành có nghĩa là PEP 751 lockfile có thể được phân tích cú pháp và tích hợp vào bzlmod.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- build-system
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100