Published June 04, 2025
As I wrote about earlier today in my upcoming projects blog post I have a need to be able publish my own things to PyPI. So I did that with my word search generator. So I learned about building packages for distribution. I learned about GitHub actions. I learned about the actual steps in pushing it to PyPI. So here's a shallow dive into what I learned.
I learned what needs to go into a pyproject.toml
file to have it build properly, and how to
have it create a command line application for it. (That would be a [project.scripts]
section.)
I learned how to write a GitHub Action that uses PyPI's Trusted Publisher functionality to publish my project. I also learned how to make one workflow depend on another.
I'm not going to go into the details here since it's all openly available in the GitHub repo. Go ahead and take a look.
I am going to add one detail. I had tried to have separate build and publish steps but for some reason that didn't work. So I combined them and just made ond action that does both. I might or might not try to separate those into separate actions at a later date. I really don't know if there is some benefit to doing it that way though.