diff --git a/Makefile b/Makefile index 6081cef..d7e64e2 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,14 @@ venv: make .venv3.$(minor) rm -f .venv && ln -s $(venv) ./.venv $(PIP) install --upgrade pip - $(PIP) install --upgrade setuptools + #$(PIP) install --upgrade "setuptools<71" dep_poetry: venv $(PIP) install poetry +clean: + rm -r .venv3.$(minor) + touch poetry.lock && rm poetry.lock .ONESHELL: install: dep_poetry @@ -58,12 +61,13 @@ cleandb: .ONESHELL: test: cleandb - $(POETRY) run pytest --cov=. --cov-report=term-missing:skip-covered . + $(POETRY) run pytest --cov="papi" --cov-report=term-missing:skip-covered . + .ONESHELL: dtest: cleandb - $(POETRY) run pytest -s --ff --lf --pdb --cov=. --cov-report=term-missing:skip-covered . + $(POETRY) run pytest -s --ff --lf --pdb --cov="papi" --cov-report=term-missing:skip-covered . .ONESHELL: qtest: cleandb diff --git a/pyproject.toml b/pyproject.toml index da44a3b..a1c8be2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,10 +6,10 @@ authors = ["Colin Goutte "] [tool.poetry.dependencies] python = "^3.9" -fastapi = "^0.68.1" +fastapi = ">=0.78.0" uvicorn = {extras = ["standard"], version = "^0.15.0"} SQLAlchemy = "^1.4.25" -Jinja2 = "^3.0.1" +Jinja2 = "~=3.0.0" mailjet-rest = "^1.3.4" [tool.poetry.dev-dependencies]