Skip to content

Commit

Permalink
fixes make reqs in e2e/requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Jun 22, 2022
1 parent 827e2a0 commit cea9fae
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions tests/e2e/requirements/Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
.DEFAULT_GOAL := help
#
# Targets to pip-compile requirements
#
include ../../../requirements/base.Makefile

ROOT_DIR = $(realpath $(CURDIR)/../../../)
VENV_DIR ?= $(realpath $(ROOT_DIR)/.venv)
VENV_DIR ?= $(realpath $(REPO_BASE_DIR)/.venv)

.PHONY: reqs
requirements.txt: requirements.in
# pip compiling $<
@pip-compile --upgrade --build-isolation --output-file $@ $<

reqs: requirements.txt ## alias to compile requirements.txt

.PHONY: install
install: $(VENV_DIR) requirements.txt ## installs dependencies
# installing requirements
@pip install -r requirements.txt


.PHONY: help
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## this colorful help
@echo "Recipes for tests/swarm-deploy:"
@echo ""
@awk --posix 'BEGIN {FS = ":.*?## "} /^[[:alpha:][:space:]_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""

0 comments on commit cea9fae

Please sign in to comment.