From 8e8a7f5d6052b84af0af501571a1fb9c5d4117d2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 16 Oct 2021 10:01:48 +0300 Subject: Makefile: add more convenient aliases --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 703f44b..eee3e82 100644 --- a/Makefile +++ b/Makefile @@ -121,3 +121,16 @@ buildx/build: .PHONY: buildx/push buildx/push: docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$(call escape,$(PROJECT))' --platform '$(call escape,$(PLATFORMS))' --progress plain --push . + +venv_dir := .venv + +.PHONY: venv +venv: + rm -rf -- '$(call escape,$(venv_dir))' + mkdir -p -- '$(call escape,$(venv_dir))' + python -m venv -- '$(call escape,$(venv_dir))' + . '$(call escape,$(venv_dir))/bin/activate' && pip install -r requirements.txt + +.PHONY: test +test: + . '$(call escape,$(venv_dir))/bin/activate' && python -m unittest --verbose --buffer -- cgit v1.2.3