-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.22 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
#
# sanic healthcheck
#
PKG_NAME := $(shell python setup.py --name)
PKG_VERSION := $(shell python setup.py --version)
.PHONY: clean
clean: ## Clean up build artifacts
rm -rf build/ dist/ *.egg-info htmlcov/ .coverage* .pytest_cache/ \
sanic_healthcheck/__pycache__ tests/__pycache__
.PHONY: deps
deps: ## Update the frozen pip dependencies (requirements.txt)
tox -e deps
.PHONY: docs
docs: ## Build the project docs locally
tox -e docs
.PHONY: fmt
fmt: ## Run formatting checks on the project source code
tox -e format
.PHONY: github-tag
github-tag: ## Create and push a tag with the current version
git tag -a ${PKG_VERSION} -m "${PKG_NAME} version ${PKG_VERSION}"
git push -u origin ${PKG_VERSION}
.PHONY: lint
lint: ## Run linting checks on the project source code (isort, flake8, twine)
tox -e lint
.PHONY: publish
publish: ## Publish the package to pypi
tox -e publish
.PHONY: test
test: ## Run the project unit tests
tox
.PHONY: version
version: ## Print the version of the project
@echo "${PKG_VERSION}"
.PHONY: help
help: ## Print Make usage information
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
.DEFAULT_GOAL := help