-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
37 lines (30 loc) · 856 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
33
34
35
36
37
.DEFAULT_GOAL := help
.PHONY: clean
clean: clean-tox clean-build clean-pyc ## Remove all file artifacts
.PHONY: clean-tox
clean-tox: ## Remove tox testing artifacts
@echo "+ $@"
@rm -rf .tox/
.PHONY: clean-build
clean-build: ## Remove build artifacts
@echo "+ $@"
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
.PHONY: clean-pyc
clean-pyc: ## Remove Python file artifacts
@echo "+ $@"
@find . -type f -name "*.py[co]" -delete
@find . -type d -name "__pycache__" -delete
@find . -name '*~' -delete
.PHONY: test
test: ## Run tests quickly with the default Python
@echo "+ $@"
@tox -e py
.PHONY: test-all
test-all: ## Run tests on every Python version with tox
@echo "+ $@"
@tox
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'