-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 996 Bytes
/
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
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: clean
clean: clean_pyc clean_pycache ## Clean all PYC in the system
.PHONY: clean_pyc
clean_pyc: ## Cleans all *.pyc in the system
find . -type f -name "*.pyc" -delete || true
.PHONY: clean_pycache
clean_pycache: ## Removes the __pycaches__
find . -type d -name "*__pycache__*" -delete
.PHONY: run
run: ## Starts the local server with production settings
ESMERALD_SETTINGS_MODULE=scheduler_example.configs.development.settings.DevelopmentAppSettings python -m scheduler_example.serve
.PHONY: test
test: ## Runs the local tests with nose
ESMERALD_SETTINGS_MODULE=scheduler_example.configs.testing.settings.TestingAppSettings pytest -s $(TESTONLY)
.PHONY: requirements
requirements: ## Installs the development requirements
pip install -r requirements/development.txt
ifndef VERBOSE
.SILENT:
endif