Template for a Python Application built with Typer and Poetry
# Open the virtualenv
poetry shell
# Build and install the tool
poetry install
# Check if the tool has been installed
which pyapp
# Run all tests that matches ./tests/test_*.py
poetry run pytest
# Create wheel
poetry build
# Install previously built package on any machine with...
sudo pip install ./dist/python-app-template-0.1.0-py3-none-any.whl
Once the tool is installed, autocompletion can be enabled as follows:
pyapp --install-completion
. ~/.bashrc