Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

🔨 build: integrate uv #265

Merged
merged 2 commits into from
Feb 16, 2024
Merged

🔨 build: integrate uv #265

merged 2 commits into from
Feb 16, 2024

Conversation

SigureMo
Copy link
Member

概述

集成 uv,跟随 uv 更新探索新一代项目管理方式

很久之前在 yutto 等一些项目探索了基于 poetry 的项目管理方式,并提取出了模板 python-lib-starter,但经过长期使用,发现 poetry 现存很多问题,其中最大的就是不支持 PEP 621python-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 的类型(至少选择一个)

  • ✨ feat: 添加新功能
  • 🐛 fix: 修复 bug
  • 📝 docs: 对文档进行修改
  • 🎨 style: 对代码语义无影响的格式修改(如去除无用空格、格式化等等修改)
  • ♻️ refactor: 代码重构(既不是新增功能,也不是修改 bug 的代码变动)
  • ⚡ perf: 提高性能的代码修改
  • ✅ test: 测试用例添加及修改
  • 🔨 build: 影响构建系统或外部依赖关系的更改
  • 👷 ci: 更改 CI 配置文件和脚本
  • ❓ chore: 其它不涉及源码以及测试的修改

@SigureMo SigureMo changed the title 🔨 build: use uv 🔨 build: integrate uv Feb 16, 2024
@SigureMo SigureMo merged commit ccd34e8 into main Feb 16, 2024
12 checks passed
@SigureMo SigureMo deleted the uv branch February 16, 2024 06:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant