Using uv to publish python package

发布 uv 的包

除了依赖管理之外,我希望使用 uv 来发布包。

LLMs 给了答复,在 pyproject.toml 中添加内容:

1
2
3
[build-system]
requires = ["setuptools>=42", "wheel", "uv>=0.6.0"]
build-backend = "setuptools.build_meta"

添加这段内容之后,我们运行

1
uv build

然后再运行

1
python -m twine upload

即可完成包的发布。

一些想法

LLMs 已经很强大了。但是,LLMs 无法保证生成内容的准确性,需要人来验证。因此,验证产物的人类是必须的。

这段代码必须有人来验证才能工作。当然,如果仅仅是修改内容,可以让 LLMs 与我们协作,通过 cursor 的形式。

comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计