setup.py(パッケージングしよう)
#パッケージングして配布する
以下だけ
でよい
メタデータの記載は
setup.cfg(パッケージングしよう)
へ
To avoid executing arbitrary scripts and boilerplate code,
https://setuptools.pypa.io/en/latest/userguide/quickstart.html#transitioning-from-setup-py-to-setup-cfg
code:setup.py
from setuptools import setup
setup()
実装としては
distutils.core.setup
を呼び出す
https://github.com/pypa/setuptools/blob/v60.5.0/setuptools/__init__.py#L151-L155
distutils
は標準ライブラリ