forked from ampledata/kiss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (41 loc) · 1.17 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
50
51
52
53
54
55
56
57
58
59
60
# Makefile for KISS Python Module.
#
# Source:: https://github.com/ampledata/kiss
# Author:: Greg Albrecht W2GMD <[email protected]>
# Copyright:: Copyright 2017 Greg Albrecht and Contributors
# License:: Apache License, Version 2.0
#
.DEFAULT_GOAL := all
all: develop
install_requirements:
pip install -r requirements.txt
develop: remember
python setup.py develop
install: remember
python setup.py install
uninstall:
pip uninstall -y kiss
reinstall: uninstall install
remember:
@echo
@echo "Hello from the Makefile..."
@echo "Don't forget to run: 'make install_requirements'"
@echo
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: remember
python setup.py nosetests
pep8: remember
flake8 --max-complexity 12 --exit-zero kiss/*.py tests/*.py
flake8: pep8
lint: remember
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
-r n --ignore-imports=y kiss/*.py tests/*.py || exit 0
pylint: lint
coverage:
coverage report -m
test: lint pep8 nosetests coverage