This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概述
集成
uv
,跟随 uv 更新探索新一代项目管理方式很久之前在 yutto 等一些项目探索了基于 poetry 的项目管理方式,并提取出了模板 python-lib-starter,但经过长期使用,发现 poetry 现存很多问题,其中最大的就是不支持 PEP 621(python-poetry/roadmap#3),这导致难以与其它 build backend 集成(比如 maturin),因此我也一直在探索新的管理工具,但无论是 pdm 还是 rye(其中 rye 最接近于理想态),都还不够
因为之前在 https://github.com/PaddlePaddle/PaddleSOT 探索过直接用 setuptools 配合 PEP 621 的极简项目管理方式,当时率先在 bilili 进行了测试,发现效果不错,而且可以方便地手动管理一切,事实上相比于 poetry 也差不了多少,因此感觉 poetry 的存在必要少了很多,虽然我也知道很多诸如 hatch、pdm、rye 之类的工具,但并没有一个真正合适的
从 uv 的发布来看,roadmap 上的内容还是比较接近于理想态的,因此我会在 bilili 中先做实验,逐步探索新的项目管理方式,最终替换掉 python-lib-starter
本 PR 的类型(至少选择一个)