forked from peplin/pygatt
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
45 lines (31 loc) · 975 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
# Makefile for pygatt Python Module.
#
# Source:: https://github.com/ampledata/pygatt
# Author:: Greg Albrecht <[email protected]>
# Copyright:: Copyright 2015 Orion Labs, Inc.
# License:: Apache License, Version 2.0
#
.DEFAULT_GOAL := all
all: install_requirements develop
develop:
python setup.py develop
install_requirements:
pip install -r requirements.txt
install:
python setup.py install
uninstall:
pip uninstall -y pygatt
clean:
@rm -rf *.egg* build dist *.py[oc] */*.py[co] cover doctest_pypi.cfg \
nosetests.xml pylint.log output.xml flake8.log tests.log \
test-result.xml htmlcov fab.log .coverage
publish:
python setup.py register sdist upload
nosetests:
python setup.py nosetests
pep8: install_requirements
flake8 --max-complexity 12 --exit-zero pygatt/*.py tests/*.py
lint: install_requirements
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
-r n pygatt/*.py tests/*.py || exit 0
test: lint pep8 nosetests