-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (33 loc) · 717 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
.DEFAULT_GOAL := help
.PHONY: help # shows available commands
help:
@echo "\nAvailable commands:\n\n $(shell sed -n 's/^.PHONY:\(.*\)/ *\1\\n/p' Makefile)"
.PHONY: test
test:
coverage run setup.py test
.PHONY: test_all # runs tests using detox, combines coverage and reports it
test_all:
detox
make coverage
.PHONY: lint
lint:
flake8 cio
.PHONY: install
install:
python setup.py install
.PHONY: develop
develop:
python setup.py develop
.PHONY: coverage
coverage:
coverage combine || true
coverage report
.PHONY: clean
clean:
rm -rf .tox/ dist/ *.egg *.egg-info .coverage
.PHONY: build
build: clean
python setup.py sdist bdist_wheel
.PHONY: release
release: build
python -m twine upload dist/*