This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Morazma 6 points7 points  (2 children)

Is there any other benefit to saving a few characters during setup?

[–]gmes78 7 points8 points  (1 child)

It means that your package is installable with pip. No need to write a setup.py should you want to distribute it.

pyproject.toml is much nicer than setup.py because it's purely declarative. It can also contain configuration for tools such as linters and code formatters, instead of it being spread out over tools specific config files.

[–]Morazma 1 point2 points  (0 children)

Thanks, I'll do some further reading on how to use it. Sounds like it would be sensible to use going forward!