Example of python packaging.
run:
pip install --extra-index-url https://arruda.pythonanywhere.com/simple my_multiplication_lib
run:
pip install my_multiplication_lib
ps: (check name of your lib, needs to be unique in the official pypi)
from my_multiplication_lib import *
print(fancy_multiplication(4, 5, 6))
Test this by running: python example/my_script.py
run:
pip install .[dev]
Will install dev libs.
run:
python -m unittest discover
run:
python -m build
run:
twine upload --repository-url https://arruda.pythonanywhere.com dist/*
run:
twine upload dist/*
You will be asked for you PyPi credentials.
ps: you may have to create a API token for your PyPi account and use it instead. Also avoid clutering by publishing fake packages to the official PyPi repository if you are just testing the process out.
See LICENSE
file for details.