-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
35 lines (25 loc) · 1.05 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
# ASPL developer convenience targets.
.PHONY: help install dev test conformance run docker-build docker-up clean
PYTHON ?= python3
PORT ?= 5010
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}'
install: ## Install ASPL (runtime only)
$(PYTHON) -m pip install -e .
dev: ## Install ASPL with dev/test extras
$(PYTHON) -m pip install -e ".[dev]"
test: ## Run the full test suite
$(PYTHON) -m pytest -q
run: ## Start a local node on $(PORT)
aspl-server --port $(PORT)
conformance: ## Run the conformance suite against a node ($(PORT) by default)
$(PYTHON) -m conformance.aspl_conformance http://127.0.0.1:$(PORT)
docker-build: ## Build the container image
docker build -t aspl-node:latest .
docker-up: ## Start a node via docker compose
docker compose up
clean: ## Remove build artifacts and local runtime files
rm -rf build dist *.egg-info .pytest_cache
find . -type d -name __pycache__ -exec rm -rf {} +
rm -f aspl.db audit.jsonl