Step-by-Step Python Package Deployment with GitHub Actions

preview_player
Показать описание

Publishing a Python package doesn't have to be overwhelming! In this video, I’ll walk you through the entire deployment process step-by-step. You'll learn how to automate releases with GitHub Actions and how to successfully publish your package on PyPi.

🔖 Chapters:
0:30 Overall
1:40 Prerequisites
2:13 Authentication With PyPi
2:53 Setting up authentication: Trusted Publisher
4:20 When To Run The GitHub Action
5:27 Tagging
6:11 Nice To Have
8:19 Checking PyPi
10:02 Setup And Build
11:20 Publish To PyPI - Trusted Publisher
12:16 Publish To GitHub
16:42 BONUS: Homebrew
19:27 Final thoughts

#arjancodes #softwaredesign #python
Рекомендации по теме
Комментарии
Автор

Thank-you very much for this Arjan, really useful. If possible could you do a video on a sensible devops approach to binary releases for Windows, MacOS, Linux with code signing? (eg. python gui app)

dxlife
Автор

Thank you. Requested this ages ago and great to see

no_name
Автор

I switched from poetry to uv. Have you tried it for your projects?

АнтонВдовенко-жо
Автор

Just needed to publish an internal package to our Nexus server. Thank you so much :D

MSSMusChaos
Автор

Amazing. Just what I needed for my Python projects on GitHub. Dank je wel!

jakobb
Автор

Great guide! I recently started using Commitizen for release management in my projects. It automatically determines the next version number and generates a changelog based on the commit history. Do you have experience with tools like this? I'd love to hear your thoughts on them!

ThijsFranck
Автор

This is great. I always struggle with GitHub Action syntax. Is there a guide for this?

EquiliMario
Автор

Arjan this is exactly what I'm working on right now, couldn't have come at a better time. The Bragir project repo answered for me exactly my question: how are you bumping your pyproject.toml file during release, but I see you have a special commit and auto-PR process to do that.

Thank you!!

yubeeee
Автор

Can you please show how to ship projects using uv & github actions via building simple package along with testing?

TheDigitalSight
Автор

Third time I re-watch. Github actions and yaml are new to me. What file and dir structure do I need to put my code to make this work? 14:14 I see a src/ and a moneysnake/ what's inside those? Where does the package py files go?

JorgeEscobarMX
Автор

@arjancodes shouldn't you escape the dots in tags regexes? Now it would match 123a2b00

lury
Автор

You mentioned homebrew but I'd also like to see nix.

quantummetaphysics
visit shbcf.ru