|
|
Subscribe / Log in / New account

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

I really wish some kind of solution existed. Currently, the official docs at https://packaging.python.org/en/latest/tutorials/packagin... offer _four_ options to "backends" in pyproject.toml. I really don't know or care about the difference between them, and as far as I can see, it's not even explained. Where did the setup.cfg file go? It was there couple of versions back. What a mess!


to post comments

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.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds