Configuring PyPi for publishing packages¶
Note
You will need a PyPi account for publishing your packages. Refer to the 1. Create service accounts page in the Step-by-step guide for more information
Head to pypi.org/account/register and create an account.
Make sure to create a strong password, include special characters.
Write your PyPi credentials to .pypirc
¶
Edit the file ~/.pypirc
and add your credentials.
Below is a snippet to make things easier.
[distutils]
index-servers =
pypi
[pypi]
username:YOUR_USERNAME
password:YOUR_PASSWORD