add a Makefile

This commit is contained in:
Andreas Zweili 2019-10-12 19:34:39 +01:00
parent e5efad4d67
commit f136ee0880
1 changed files with 28 additions and 0 deletions

28
Makefile Normal file
View File

@ -0,0 +1,28 @@
SHELL=/bin/bash
.PHONY: run
run: venv
./sensors
test:
pytest --cov=. --cov-report=html
developement:
python3 -m venv venv
( \
source venv/bin/activate; \
pip3 install -r requirements/development.txt; \
)
venv:
python3 -m venv venv
( \
source venv/bin/activate; \
pip3 install -r requirements/base.txt; \
)
clean:
rm -rf venv/
find . \( -name __pycache__ -o -name "*.pyc" \) -delete
rm -rf htmlcov/