Skip to content

Commit f3d8a85

Browse files
committed
add makefile for delphi utils
1 parent a536f7e commit f3d8a85

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

_delphi_utils_python/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY = venv, lint, test, clean
2+
3+
dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')
4+
5+
venv:
6+
python3 -m venv env
7+
8+
install: venv
9+
. env/bin/activate; \
10+
pip install wheel ; \
11+
pip install -e .
12+
13+
lint:
14+
. env/bin/activate; \
15+
pylint $(dir)
16+
17+
test:
18+
. env/bin/activate ;\
19+
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)
20+
21+
clean:
22+
rm -r env

0 commit comments

Comments
 (0)