Adapt bootstrap / conventions to use `pylock.toml`

Đang mở
#54 1 bình luận 0 reaction 2 người được giao Xem trên GitHub

@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ả

enhancement

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 hatch to uv
    • 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
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openzim/_python-bootstrap

Tất cả issue của openzim/_python-bootstrap

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.