From 8ef45fd03e943935b411568b2a845e8cf8a0aa3f Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 11 Jun 2021 14:13:55 +0200 Subject: [PATCH] Simple dev target --- README.md | 2 -- makefile | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5bac580..d552fc2 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,5 @@ your technology stack. It's a [FastAPI](https://fastapi.tiangolo.com/) application. ``` -$ python3 -m venv .venv && source .venv/bin/activate -$ pip install -e . $ make ``` diff --git a/makefile b/makefile index c6620d2..ee93c4e 100644 --- a/makefile +++ b/makefile @@ -2,4 +2,9 @@ .PHONY: run run: - @uvicorn keycloak_collective_portal:app --reload + @if [ ! -d ".venv" ]; then \ + python3 -m venv .venv && \ + .venv/bin/pip install -U pip setuptools wheel poetry && \ + .venv/bin/poetry install --dev; \ + fi + .venv/bin/poetry run uvicorn keycloak_collective_portal:app --reload