Set up automatic release on PyPi
jo-mueller opened this issue · 7 comments
We should update the test_and_deploy.yaml
to support automatic releases of the plugin through PyPi. For that, we should change the packaging inLine 115 to use
python -m build .
`´`
rather than the use of bdist (`python setup.py sdist bdist_wheel`). We need an API token of the repos owner on PyPi, though.
Thanks for adding a link to a page where the process is explained. let me just add another potentially useful resource: https://medium.com/@VersuS_/automate-pypi-releases-with-github-actions-4c5a9cfe947d
I was trying to see if I can add this functionality but it seems that I cannot look at the repository settings since I am not the owner of the repository (I'm guessing @lazigu or @haesleinhuepf is?). Can this access be changed?
@Cryaaa I have access to the repository secrets but there's no API token there. It has to be generated by someone who has access to release process on PyPi.
I made you admin @Cryaaa
Cool. I'll send a PR to update the github action for release to the latest standard and @Cryaaa can pass me the API token to be added as a repository secret. The release on github should then trigger the automated upload to PyPi.
Cool. I'll send a PR to update the github action for release to the latest standard and @Cryaaa can pass me the API token to be added as a repository secret. The release on github should then trigger the automated upload to PyPi.
Thanks for taking care of this! I’ll get you the API key on Monday because I’m quite busy this weekend hence my inactivity the past few days..
@jo-mueller, I have just added the PYPI API token as a secret to the repository so now most things should be in place! If you need me to take care of anything else please let me know!