-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (43 loc) · 968 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
py ?= python
pip ?= $(py) -m pip
tox ?= tox
help: Makefile
@echo
@echo " Choose a command run in Alertify:"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo
## config: Install needed dependencies.
.PHONY: config
config:
$(pip) install twine
$(pip) install wheel
$(pip) install tox
$(pip) install setuptools-scm
$(PIP) install git+https://github.com/psf/black
## test: Run test case.
.PHONY: test
test:
@echo "\n==> Run Test Cases:"
$(tox)
## ci: Run all CI checks.
.PHONY: ci
ci: test
@echo "\n==> All quality checks passed"
## build: Build the package.
.PHONY: build
build:
$(tox) -e clean
$(tox) -e build
## version: Get latest version
.PHONY: version
version:
$(py) setup.py --version
## release: Release to PyPi
release:
$(py) -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
## install: Install the package locally
.PHONY: install
install:
$(py) setup.py install
.PHONY: ci