29 lines
552 B
Makefile
29 lines
552 B
Makefile
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 ' ' -
|
|
|
|
|
|
watch:
|
|
${WATCH_COMMAND}
|
|
|
|
test:
|
|
poetry run pytest -x -n auto --dist loadscope
|
|
|
|
retest:
|
|
poetry run pytest -lx --ff -n auto
|
|
|
|
cov:
|
|
poetry run pytest --cov={{cookiecutter.pkg_name}}
|
|
|
|
server:
|
|
${SERVER_COMMAND}
|
|
|
|
update:
|
|
poetry update
|
|
|
|
build:
|
|
poetry build -f wheel
|
|
|
|
wheels: build
|
|
poetry run pip wheel -w dist dist/${VERSION}-*.whl
|