-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (42 loc) · 941 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
PYTHON ?= python
PIP ?= $(PYTHON) -m pip
TOX ?= tox
help: Makefile
@echo
@echo " Choose a command run in Pinkman:"
@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
## 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:
$(PYTHON) setup.py --version
## release: Release to PyPi
release:
$(PYTHON) -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --verbose
## install: Install the package locally
.PHONY: install
install:
$(PYTHON) setup.py install
.PHONY: ci