-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (37 loc) · 796 Bytes
/
Makefile
File metadata and controls
52 lines (37 loc) · 796 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: build
install_uv:
@if ! command -v uv >/dev/null 2>&1; then \
curl -LsSf https://astral.sh/uv/install.sh | sh; \
fi
setup:
make install_uv
uv venv
uv pip install .[test,publish,dev,capnproto] -U
format:
./.venv/bin/ruff format .
lint:
./.venv/bin/ruff check .
test:
./.venv/bin/pytest -s -v tests/unit
run:
./.venv/bin/xconn example:app --directory examples/simple
build:
uv build
publish:
uv publish
run-docs:
mkdocs serve
build-docs:
mkdir -p site/xconn/
mkdocs build -d site/xconn/python
clean-docs:
rm -rf site/
install-nxt:
@if ! command -v nxt >/dev/null 2>&1; then \
sudo snap install nxt-router --classic --edge; \
fi
integration:
make install-nxt
./.venv/bin/pytest -s -v tests/integration/
aat:
./.venv/bin/pytest -s -v tests/aat/