A quick guide to publishing Python Package on PyPI
May 19, 2022
- Create an account on PyPI
- Build a repository on Github (example)
- Create a setup.py
Create the __init__.py in the package inside the repository
- Clone your repository into the local
- Install setuptools
pip install setuptools
- Open os terminal and go to the root of the repository
- Build the dist
python setup.py sdist bdist_wheel
- Upload the dist on PyPI
twine upload dist/*