Publish to pypi via UV & Github workflows

Danny CrastoDanny Crasto
1 min read

I’ve incorporated uv into my development workflow. It’s a swiss army knife that replaces venv, pip, pipx, build, twine and others that i’m yet to discover.

You can even run standalone scripts: uv run https://danwald.me/assets/uv_cowsay.py

I wanted to publish to pypi using a Github workflow triggered by a release. I heavily borrowed from this article to create this publishing workflow. The only difference is that uses the recommended authorization of a trusted publisher rather that a secret. Make sure the pypi’s project name and github’s repository and workflow names are legit and you’re GTG.

Happy hackin’

References

0
Subscribe to my newsletter

Read articles from Danny Crasto directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Danny Crasto
Danny Crasto

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae