Built using this tutorial.
Tested on macOS.
Prerequisites:
Install poetry with:
curl -sSL https://install.python-poetry.org | python - && \
export PATH="$HOME/.poetry/bin:$PATH"
Change the name of the CLI, and point it to the typer app, in pyproject.toml
:
[tool.poetry.scripts]
simple-python-cli = "simple_python_cli.main:app"
To test locally:
poetry install
simple-python-cli -h
simple-python-cli shoot
To build (create a .whl):
poetry build