Python packaging
...to summarize, if you’re using Setuptools the de-facto current packaging setup is as follows:
- pyproject.toml → build system config (boilerplate from the packaging guide)
- setup.cfg → Primary metadata and Setuptools configuration (e.g. deps, metadata, options, etc)
- setup.py → Stub file for legacy tooling (boilerplate from above)
From < https://discuss.python.org/t/adding-dependencies-per-packaging-python-projects/14048/7 >