fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Valentino Gagliardi

What's the current state of the art for publishing Python packages? Resources and link would be helpful!

@gagliardi_vale Though I do not have a lot of experience with it yet, I hear uv is very popular for this.

You can find more on uv and other "hypermodern" #python stuff in this article:
datasciencesouth.com/blog/hype

datasciencesouth.comHypermodern Python Toolbox 2025

@gagliardi_vale Honestly, I would say the current state of the art is a community standard which is implemented by different projects, so you get to try them and choose your favorite 😀

But seriously though, I don't know that there's one thing that really qualifies as *the* state of the art. What I would suggest for someone just looking for a recommendation:
- If your project lives on one of the sites that supports it, trusted publishing (docs.pypi.org/trusted-publishe)
- Otherwise, twine (pypi.org/project/twine/) is the standard tool for the job. What pip is for installing packages, twine is for publishing them.

If you're looking for something fancier, with more features, then it'd make sense for you to play around with those other projects I mentioned. Things like hatch and Poetry and uv. Which one you'll prefer will depend on your preferences.

docs.pypi.orgPublishing with a Trusted Publisher - PyPI Docs