[PYTHON] PyPI registration

Purpose

――When you publish your own Python package on PyPI

Write setup.py

Manners

I will write it with reference to the official document.

Register your package with PyPI

After the initial registration, .pypirc will be created in your home directory.

$ python setup.py register

Publish package to PyPI

When distributing the source, binary distribution, and egg, it will be as follows.

$ python setup.py sdist bdist bdist_egg upload

Add to .gitignore

Files generated when publishing are subject to ignore.

. gitignore


*.egg-info
*.pyc
dist
build

Recommended Posts

PyPI registration
Summary of procedures up to PyPI registration
PyPI push memo