-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
66 lines (55 loc) · 1.8 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
61
62
63
64
65
66
PYTHON=python3
.PHONY: deps
deps:
apt-get update && apt-get install -y python3 python3-pip
.PHONY: install
install:
# install and update pip, setuptools and wheel
$(PYTHON) -m pip install --upgrade pip setuptools wheel
# install slub_docsa package
cd code/python/ && $(PYTHON) -m pip install .
.PHONY: install-test
install-test:
# install and update pip, setuptools and wheel
$(PYTHON) -m pip install --upgrade pip setuptools wheel
# install slub_docsa package and test dependencies
cd code/python/ && $(PYTHON) -m pip install .[test]
.PHONY: install-dev
install-dev:
# install and update pip, setuptools and wheel
$(PYTHON) -m pip install --upgrade pip setuptools wheel
# install python all dependencies including developer dependencies
cd code/python/ && $(PYTHON) -m pip install -e .[dev,test]
.PHONY: package
package:
(cd code/python && bash package_build.sh)
.PHONY: serve
serve:
(cd data/ && slub_docsa serve)
.PHONY: lint
lint:
(cd code/python && bash lint.sh)
.PHONY: test
test:
(cd code/python && bash test_run.sh)
.PHONY: coverage
coverage:
(cd code/python && bash test_coverage.sh)
.PHONY: docs
docs:
(cd code/python && bash docs.sh)
.PHONY: help
help:
@echo ""
@echo " Targets"
@echo ""
@echo " deps Install python3 and pip via apt-get"
@echo " install Install slub_docsa package and its dependencies via pip"
@echo " install-test Install slub_docsa package and test dependencies via pip"
@echo " install-dev Install slub_docsa package in edit mode (pip install -e .) for development"
@echo " package Generates python source and wheel distributables"
@echo " lint Checks python source code for lint problems"
@echo " test Run unit tests"
@echo " coverage Run unit tests and print coverage report"
@echo " docs Generate python API documentation"
@echo ""