-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
49 lines (33 loc) · 1.02 KB
/
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
# Makefile for Dummy Serial Python Module.
#
# Source:: https://github.com/ampledata/dummyserial
# Author:: Greg Albrecht <[email protected]>
# Copyright:: Copyright 2016 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 dummyserial
reinstall: uninstall install
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: flake8
flake8: install_requirements
flake8 --max-complexity 12 --exit-zero dummyserial/*.py tests/*.py
lint: install_requirements
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
-r n dummyserial/*.py tests/*.py || exit 0
test: lint pep8 nosetests