Skip to content

Python#

Learn python#

Python Data Science Handbook

How to create a package on PyPI#

This is how you create the PyPI package and upload to the PyPI repo

  • Prerequisite:

    • Create an account
    • Install required packages:
pip install tqdm
pip install  twine
pip install setuptools wheel
  • Step 1, build the source distribution
python setup.py sdist
  • Step 2, build distribution
python setup.py bdist_wheel --universal
  • Step 3, upload
    python -m twine upload dist/* 
    

Tips#

Everytime you want to upload a new version you have to increment the version number within the setup.py file.