setup.cfg myprogram/ __init__.py
Ensure you have the prereqs:
pip install --upgrade pip setuptools twine wheel
Sign up for a PyPI account.
~/.pypirc with the content
Do NOT save password for security.
In your Python package directory, create the source package and upload
python setup.py sdist twine upload dist/*
Now the package is live to the world on PyPI, installable via
error: Upload failed (400): Binary wheel '*-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.
This error happens because PyPI requires
It is not trivial to first start building
Consider not uploading the wheel.
User will compile your source code on their machine.
They will need the appropriate compilers and libraries for your Python package.