Оптимизация Makefile

master
Антон Касимов 2023-12-21 02:58:26 +03:00
parent ce1bdc27cb
commit 5a041b9549
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
WATCH_COMMAND=poetry run uvicorn --reload --host=::1 {{cookiecutter.pkg_name}}.application:app
SERVER_COMMAND=poetry run uvicorn --host=::1 {{cookiecutter.pkg_name}}.application:app
VERSION != poetry version | tr ' ' -
.PHONY: tags test
watch:
${WATCH_COMMAND}
@ -25,4 +25,7 @@ build:
poetry build -f wheel
wheels: build
poetry run pip wheel -w dist dist/${VERSION}-*.whl
sh -c "poetry run pip wheel -w dist dist/`poetry version 2>/dev/null | tr ' ' -`-*.whl"
tags:
uctags -R