-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (25 loc) · 2.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##██ GENIUSRISE
# ██████████████████████████████████████████████████████████████████████
.DEFAULT_GOAL := help
SHELL := /bin/bash
setup: ## Install dependencies
@pip install -r ./requirements.txt
test: ## Run tests (note: requires imports)
@coverage run -m pytest -vv --log-cli-level=ERROR ./tests
publish: ## Publish to pypi
@rm -rf dist build
@python setup.py sdist bdist_wheel
@twine upload dist/* --verbose
help: ## Dislay this help
@printf "\033[31m%-30s\033[0m %s\n" " ██████ ███████ ███ ██ ██ ██ ██ ███████ ██████ ██ ███████ ███████"
@printf "\033[31m%-30s\033[0m %s\n" "██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██"
@printf "\033[31m%-30s\033[0m %s\n" "██ ███ █████ ██ ██ ██ ██ ██ ██ ███████ ██████ ██ ███████ █████ "
@printf "\033[31m%-30s\033[0m %s\n" "██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██"
@printf "\033[31m%-30s\033[0m %s\n" " ██████ ███████ ██ ████ ██ ██████ ███████ ██ ██ ██ ███████ ███████"
@echo ""
@printf "\033[31m%-30s\033[0m %s\n" "🧠 https://geniusrise.ai"
@echo ""
@IFS=$$'\n'; for line in `grep -h -E '^[a-zA-Z_#-]+:?.*?## .*$$' $(MAKEFILE_LIST)`; do if [ "$${line:0:2}" = "##" ]; then \
echo $$line | awk 'BEGIN {FS = "## "}; {printf "\n\033[33m%s\033[0m\n", $$2}'; else \
echo $$line | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'; fi; \
done; unset IFS;