37 lines
549 B
Makefile
37 lines
549 B
Makefile
# Makefile for APRS module
|
|
|
|
define HELPBODY
|
|
Available commands:
|
|
|
|
make help - this thing.
|
|
make init - install python dependancies
|
|
make test - run tests and coverage
|
|
make pylint - code analysis
|
|
make build - pylint + test
|
|
|
|
endef
|
|
|
|
export HELPBODY
|
|
help:
|
|
@echo "$$HELPBODY"
|
|
|
|
init:
|
|
pip install -r req.txt
|
|
|
|
test:
|
|
nosetests --verbosity 2 --with-coverage
|
|
|
|
pylint:
|
|
pylint -r n -f colorized aprs || true
|
|
|
|
build: pylint test
|
|
|
|
clean:
|
|
rm -rf dist aprs.egg-info
|
|
|
|
dist: clean
|
|
python setup.py sdist
|
|
|
|
upload:
|
|
twine upload dist/*
|