――When you publish your own Python package on PyPI
I will write it with reference to the official document.
After the initial registration, .pypirc will be created in your home directory.
$ python setup.py register
When distributing the source, binary distribution, and egg, it will be as follows.
$ python setup.py sdist bdist bdist_egg upload
Files generated when publishing are subject to ignore.
. gitignore
*.egg-info
*.pyc
dist
build