Packaging
Use pyproject.toml
The Packaging Flow - Python Packaging User Guide
Packaging Python Projects - Python Packaging User Guide
Compare build tools
Python Packaging Tools — Python Packaging Guide
hatch
https://setuptools.pypa.io/en/latest/userguide/entry_point.html#console-scripts
[project.scripts]
cli-name = "pkg.subpkg:func"
.pypirc
https://packaging.python.org/en/latest/specifications/pypirc/
PyPI 不允許發布者覆蓋舊文件
https://github.com/pypa/packaging-problems/issues/75
setuptools
This is old, but still many project using it
Package Discovery and Namespace Packages - setuptools 70.2.0.post20240702 documentation