Cheat Sheet about Python
In order to publish a python package on PyPI, follow these steps:
- Create an account on PyPI.
- Create an account on PyPI test.
- Write a
setup.py. (Example will follow below)
python setup.py dist. (This need some more detail, e.g.
wheeland so on should be explained)
twine upload --repository-url https://test.pypi.org/legacy/ dist/*and check the results on PyPI test.
- If fine, execute
twine upload dist/*.
Congratulations! You published a package on PyPI!