GitHub Actions for Python Packages: How to Automate Releases to PyPi

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 32

  • @ArjanCodes
    @ArjanCodes  2 месяца назад +1

    💡 Learn how to design great software in 7 steps: arjan.codes/designguide.

  • @MSSMusChaos
    @MSSMusChaos 2 месяца назад +3

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

  • @no_name243
    @no_name243 2 месяца назад +3

    Thank you. Requested this ages ago and great to see

    • @ArjanCodes
      @ArjanCodes  2 месяца назад

      Hope you enjoyed it!

  • @me_jd_solanki
    @me_jd_solanki 2 месяца назад +6

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

  • @porlando12
    @porlando12 Месяц назад

    This was awesome! I'd love to see the approach you would take to incorporate TestPyPI.

  • @UNgineering
    @UNgineering Месяц назад

    awesome tips as always, Arjan!
    there's a very similar action to what you're doing in the 'extract tag and details' step: builder555/simple-semver it grabs the last commit that was tagged with v3.5.0 (or whatever that version was) and returns new version based on commits since then, so if you had 1 minor and 1 patch update since, it would output 3.6.1

  • @dxlife
    @dxlife 2 месяца назад +2

    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)

  • @sambroderick5156
    @sambroderick5156 2 месяца назад +1

    Upvote for the homebrew blogpost.

  • @alberthalbert1153
    @alberthalbert1153 2 месяца назад

    I literally just set up all of this for private packages about a month ago. Wish this would have been available as a starting point.

  • @mohit.shrestha
    @mohit.shrestha 2 месяца назад +1

    Have you looked into Hatch? Would be good to see you do video similar to this using hatch and uv and ruff

  • @mmasa1
    @mmasa1 Месяц назад

    Thank you sir! Quality..

  • @ThijsFranck
    @ThijsFranck 2 месяца назад +2

    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!

  • @АнтонВдовенко-ж3о
    @АнтонВдовенко-ж3о 2 месяца назад +14

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

  • @pcdoc8
    @pcdoc8 2 месяца назад

    This is gold! Thank you!

    • @ArjanCodes
      @ArjanCodes  2 месяца назад

      Glad you enjoyed it!

  • @JorgeEscobarMX
    @JorgeEscobarMX 2 месяца назад

    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?

  • @iaprogrammer
    @iaprogrammer 29 дней назад

    Thanks

  • @EquiliMario
    @EquiliMario 2 месяца назад

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

  • @gustavojuantorena
    @gustavojuantorena 2 месяца назад +1

    Great!

  • @ramimashalfontenla1312
    @ramimashalfontenla1312 2 месяца назад

    Superuseful!

    • @ArjanCodes
      @ArjanCodes  2 месяца назад

      Glad it was helpful!

  • @lury719
    @lury719 2 месяца назад

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

  • @yubeeee
    @yubeeee 2 месяца назад

    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!!

  • @quantummetaphysics
    @quantummetaphysics 2 месяца назад

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

  • @traal
    @traal 2 месяца назад +2

    Just one little thing… PyPI is pronounced ”pie pea eye”. In fact ”pie pie” would be PyPy, so that’s different. 😊