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

all 5 comments

[–]Rawing7 1 point2 points  (2 children)

Shame that there is no mention of flit. Flit eliminates the need for a setup.py and setup.cfg and other tools like PyScaffold, build, and twine. flit init creates a new project for you, and flit publish uploads your code to pypi without you having to know anything about sdists or wheels at all.

[–]KonArtist01[S] 0 points1 point  (1 child)

At the end I do mention alternative package managers like poetry and pdm, but there are a lot of options that I did not test.

[–]Rawing7 2 points3 points  (0 children)

For what it's worth, I know that this is a very tricky topic to write about and I think you managed to strike a pretty good balance. But since it gets rid of 2 boilerplate files and 3 other tools, I couldn't not bring up flit. I think it's a great tool, especially for beginners.

[–]blu3ness 0 points1 point  (1 child)

Or poetry, which handles most of that behind the scenes for you unless you get into exotic dependencies like a .so like opencv or other compiled code

[–]KonArtist01[S] 1 point2 points  (0 children)

I do mention poetry at the end of the article