Gabriel Caldas
Gabriel Caldas

Reputation: 381

LInk github repo with package on Pypi

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?

Upvotes: 5

Views: 3382

Answers (2)

funerr
funerr

Reputation: 8156

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

Upvotes: 2

Patrick Klein
Patrick Klein

Reputation: 1181

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

Upvotes: 7

Related Questions