-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 913 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
all:
@echo
@echo "Available targets"
@echo ""
@echo "build -- build python package"
@echo ""
@echo "pypi -- upload package to pypi"
@echo ""
@echo "test -- execute test suite"
@echo ""
@echo "pylint -- run pylint tests"
@echo ""
@echo "pydocstyle -- run pydocstyle tests"
@echo ""
@echo "coverage -- create coverage report"
@echo ""
@echo "clean -- cleanup working directory"
test:
pytest
build:
@python3 setup.py sdist
@python3 setup.py egg_info
pypi:
@rm -f dist/*
@python setup.py sdist
@twine upload dist/*
pylint:
@pylint -j 8 --rcfile=.pylintrc xknx test/*.py *.py examples/*.py
pydocstyle:
@pydocstyle xknx test/*.py test/*.py *.py examples/*.py
coverage:
pytest --cov-report html --cov xknx --verbose
clean:
-rm -rf build dist xknx.egg-info
-rm -rf .tox
-rm -rf .coverage htmlcov
.PHONY: test build clean