-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (53 loc) · 1.73 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
OS = $(shell uname)
# COLORS
RED = $(shell printf "\33[31m")
GREEN = $(shell printf "\33[32m")
WHITE = $(shell printf "\33[37m")
YELLOW = $(shell printf "\33[33m")
RESET = $(shell printf "\33[0m")
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# HELP
#
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
.DEFAULT: help
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# DEVELOPMENT
#
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
development_setup:
@echo "${YELLO}Setup development environment...${RESET}"
@pip install -r requirements/dev.txt
@echo "${GREEN}✔ setup finished successfully${RESET}\n"
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# BUILD
#
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
test:
@echo "${YELLOW}Running all tests${RESET}\n"
@pytest
@echo "${GREEN}✔ well done!${RESET}\n"
lint:
@echo "${YELLOW}Linting...${RESET}\n"
@flake8
@pylint ./cabot_alert_typetalk
@echo "${GREEN}✔ well done!${RESET}\n"
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
# BUILD
#
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
build_prepare:
@echo "${YELLOW}Preparing for build...${RESET}"
@python -m pip install --user --upgrade setuptools wheel twine
@echo "${GREEN}✔ setup finished successfully${RESET}\n"
build:
@echo "${YELLOW}Building...${RESET}"
@python setup.py sdist bdist_wheel
@echo "${GREEN}✔ successfully built${RESET}\n"
upload:
@echo "${YELLOW}Uploading...${RESET}"
@twine upload dist/*
@echo "${GREEN}✔ successfully uploaded${RESET}\n"