LInk github repo with package on Pypi

Question:

I uploaded a python package on Pypi, but I’d also like to upload it to Github, so it can be opensource and anyone can contribute.

Is is possible to link the github repo with the already uploaded package on Pypi, so whenever I push something to the master branch, it also updates on Pypi?

Asked By: Gabriel Caldas

||

Answers:

In your Github repository there is a tab called Actions (next to Pull requests) where there are several actions like "Publish Python Package".

Python Package Action

Selecting it will automatically add the relevant Code to your repository. You then only need to store your credentials, like username & password.
You can do so under Settings > Secrets > Actions

Add repository secrets

Answered By: Patrick Klein

Go to PyPI -> Your Repo -> Manage -> Publishing -> Add your GitHub Details.

Answered By: funerr
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.