3 ms·
Instead there's a scary deprecation warning when a package uses setup.cfg, which is another declarative replacement for setup.py. And some pyproject.toml featu
by plonk 4y ago
Instead there's a scary deprecation warning when a package uses setup.cfg, which is another declarative replacement for setup.py.
And some pyproject.toml features are still experimental per the setuptools docs, so I'm not sure which method to choose for our internal projects.
I'm glad the setuptools/pip/Python devs are cleaning up the packaging situation though. pyproject.toml seems perfect, when it becomes ready.
- mmastrac 4y agoI published my first Python code in a while using a pyproject.toml and it was amazingly simple. As someone who was doing Rust for a while I really feel like they're learning from the modern ecosystems very well.
- bbkane 4y agoDo you have a link to a good tutorial for this?
- plonk 4y agoFollow the setuptools doc [1], it's very easy and there's an example you can start from. It links to PEP 621 [2] which seems to be the specification if that can help. [1] https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html https://setuptools.pypa.io/en/latest/userguide/pyproject_con... [2] https://peps.python.org/pep-0621/ https://peps.python.org/pep-0621/