Adapt bootstrap / conventions to use `pylock.toml`
@rgaudin đang làm issue này rồi.
Từ ngày 18/7/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
In many projects we are building (scrapers, zimfarm, ... all besides libraries like python-scraperlib), we use pinned dependencies versions to ensure reproducible builds.
But now the ecosystem has changed and pylock.toml format has landed (see https://packaging.python.org/en/latest/specifications/pylock-toml/)
This file would allow to specify range of versions in pyproject.toml for all projects, and use the pylock.toml to have reproducible builds.
This would allow to simplify significantly dependency upgrades since one will just have to update the pylock.toml to most recent version matching pyproject.toml ranges. This is currently done manually and is quite a pain.
Currently, hatch does not support this pylock.toml file, see e.g. https://github.com/pypa/hatch/issues/749
We could:
- wait for hatch to support it, and help if possible
- downside: not ready
- consider migrating from
hatchtouv- downside1 : hatch-openzim plugin will not work anymore ... but could probably easily be adapted for uv +
- downside2: uv uses its own "proprietary" lock file, which is not really future-proof)
I would clearly prefer to wait for hatch support (and contribute to it as much as possible).
WDYT?
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 4
- Merge trung bình
- 22 giờ 26 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openzim/_python-bootstrap
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 50/100
openzim/_python-bootstrap#58 ·
-
Workflow conventionCó thể làm lại được @benoit74 đã nhận 519 ngày trước và không có pull request nào đang mở. Đang mởquestion
openzim/_python-bootstrap#53 · 1 người được giao ·
-
Move `.pre-commit.yaml` to hatchĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
openzim/_python-bootstrap#51 · 3 bình luận ·
-
What about nested logsCó thể làm lại được @rgaudin đã nhận 793 ngày trước và không có pull request nào đang mở. Đang mởenhancement
openzim/_python-bootstrap#48 · 2 người được giao ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
openzim/_python-bootstrap#47 · 1 bình luận ·
Tất cả issue của openzim/_python-bootstrap
Issue tương tự
-
docs(contributing): the two things that silently block a PRCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởavailable documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 95/100
Nixitov/Riptide-Native#944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
JTHCode/secretguard#24 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainer thường phản hồi trong vòng 1 ngày