videogames.ai Blog About Hardware guide

How to create your own python package and upload it to pypi.org

Notes for the video:

Install dependencies

sudo apt-get install cmake python3 python3-pip build-essential libssl-dev libffi-dev cargo
pip3 install wheel twine setuptools tqdm

Create .pypirc file in your /home directory

[distutils] 
index-servers=pypi
[pypi] 
repository=https://upload.pypi.org/legacy/ 
username=matpoliquin

Build your wheel and upload it to pypi.org

python3 setup.py bdist_wheel
python3 -m twine upload dist/*