-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.04 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.04 KB
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
.PHONY: help install test run build clean sdist create
PYTHON ?= python
help:
@echo "ANK - Python streaming system"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " help Show this help (default)"
@echo " install Install ank in editable mode (pip install -e .)"
@echo " test Run unit tests"
@echo " run Run service (from examples/streaming_app)"
@echo " build Build Docker image"
@echo " clean Remove build artifacts and caches"
@echo " sdist Build source distribution"
@echo " create Create example project (TestService)"
install:
pip install -e .
test:
$(PYTHON) -m unittest discover -s ank/tests -p 'test_*.py' -v
run:
cd examples/streaming_app && ank run -fs settings.yml
build:
docker build -t ank .
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name '*.pyc' -delete 2>/dev/null || true
sdist: clean
$(PYTHON) setup.py sdist
create:
ank create TestService -c BaseApp