uv 默认使用 hatchling 作为构建后端,未来版本将切换为内建的 uv_build 后端.
uv_build 后端完全兼容 PEP 517,开箱即用且性能优异,但仅支持纯 Python 项目.
在 pyproject.toml 的 [build-system] 中添加 uv_build 即可启用 uv 构建后端.
uv 可捆绑内置的 uv_build 包;若版本不兼容,则自动下载兼容版本.
默认会在源分发和 wheel 中包含模块、许可证、README 及数据文件,并排除 __pycache__ 等.
可通过 module-name、module-root、namespace 和 stub 等配置自定义项目结构和命名空间.
Get notified when new stories are published for "🇨🇳 Hacker News 简体中文"