python 新的包构建模式

实际上是PEP 517 的定义,主要是对于基于distutils以及setuptools 已经存在太久的时间了,需要一些调整了
目前已经有了不少相关的实现了,同时也有不少python 包的开发就是基于了新的规范了,hatch 以及poetry 是
一个不错的选择

说明

关于python包开发的,有一本很不错的书Publishing Python Packages: Test, share, and automate your projects 很不错
值得看看

参考资料

https://peps.python.org/pep-0517/
https://github.com/pypa/hatch
https://hatch.pypa.io/latest/
https://python-poetry.org/
https://github.com/python-poetry/poetry
https://github.com/pypa/setuptools
https://github.com/pypa/distutils
https://levelup.gitconnected.com/should-i-build-a-package-using-pep-517-and-how-a5bb15de1ccc

posted on 2023-08-12 12:35  荣锋亮  阅读(24)  评论(0编辑  收藏  举报

导航