techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

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

David Zaslavsky

@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