Adapt bootstrap / conventions to use `pylock.toml`
@rgaudin 已经在做这个了。
开始于 2025年7月18日。
评估
这个 Issue 还没有评估数据。
描述
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?
- 主要语言
- Python
- 星标
- 1
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openzim/_python-bootstrap 的其他 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 76/100
openzim/_python-bootstrap#57 ·
-
question
openzim/_python-bootstrap#53 · 已指派 1 人 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 25/100
openzim/_python-bootstrap#51 · 3 条评论 ·
-
enhancement
openzim/_python-bootstrap#48 · 已指派 2 人 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
openzim/_python-bootstrap#47 · 1 条评论 ·
查看 openzim/_python-bootstrap 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·