-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 760 Bytes
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
.PHONY: install demo demo-offline examples test eval ops clean
VENV ?= .venv
PY := $(VENV)/bin/python
PIP := $(VENV)/bin/pip
OPS := $(VENV)/bin/switchyard-ops
install:
python3 -m venv $(VENV)
$(PIP) install -U pip
$(PIP) install -r requirements.txt
demo: install
$(PY) app.py
demo-offline: install
OFFLINE=1 $(PY) app.py
examples: install
@for f in examples/0*.py; do echo "\n===== $$f ====="; $(PY) $$f || exit 1; done
# Product layer CLI
ops: install
$(OPS) report --scenario coding-pr
$(OPS) emit-toml --strategy stage -o /tmp/switchyard-ops-routes.toml
@echo "emitted /tmp/switchyard-ops-routes.toml"
test: install
$(VENV)/bin/pytest -q tests/
eval: examples ops
clean:
rm -rf $(VENV) .pytest_cache **/__pycache__ *.egg-info build dist