Publish Python package on pypi.org

Install twine

pip install twine
pip install wheel

Build the wheel

python .\setup.py sdist bdist_wheel

Check the wheel

twine check dist/*

Upload to pypi.org

twine upload dist/*

Setup.py Example

from distutils.core import setup

setup(name='package_name',
version='1.0.1',
description='Short descripton',
long_description=open('README.md', "r").read(),
long_description_content_type='text/markdown',
install_requires=[],
author='your_name',
author_email='your_email',
keywords=[],
url='https://github.com/your/package_name',
packages=['package_name']
)