Please read ./docs/design.markdown for notes on design choices.
# first create a virtual environment
python3 -m venv ~/venv
. ~/venv/bin/activate
# install the server in development mode:
python setup.py develop
# set the Flask app name in the environment
export FLASK_APP=todo
# initialize the database
flask init-db
# launch the server
flask run
pip install -U pip pytest coverage
pytest
coverage run -m pytest
coverage report
The main idea here is to produce a Python wheel file. That file can be installed inside a container in a virtual environment.
pip install wheel
python setup.py bdist_wheel
# will produce a dist/todo-1.0.0-py3-none-any.whl file
# inside the container, this file can be installed:
pip install todo-1.0.0-py3-none-any.whl