Python packaging and its tools
Python packaging and its tools
Posted Mar 2, 2023 9:56 UTC (Thu) by egor_tensin (subscriber, #118591)Parent article: Python packaging and its tools
Posted Mar 2, 2023 14:28 UTC (Thu)
by pbonzini (subscriber, #60935)
[Link]
setup.cfg is still there if you use setuptools, but you can also put all your configuration in a pyproject.toml file.
Information on how to build the wheel can be in other files (setup.py for setuptools, meson.build for mesonpy, etc.) but the common information about the project (dependencies, scripts, name/version/author/description, etc.) is always in pyproject.toml.
I looked at it a couple months back in the context of writing a program which had Cython bits in it. It's actually pretty nice—except that finding the right documentation is a Herculean task.
Python packaging and its tools