forked from ampledata/hambot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (39 loc) · 1.1 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
# Makefile for HamBot.
#
# Source:: https://github.com/ampledata/hambot
# Author:: Greg Albrecht W2GMD <[email protected]>
# Copyright:: Copyright 2017 Greg Albrecht
# 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 hambot
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 *.py hambot/*.py tests/*.py
flake8: pep8
lint: remember
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
-r n *.py hambot/*.py tests/*.py || exit 0
pylint: lint
test: lint pep8 nosetests