-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (52 loc) · 1.35 KB
/
Makefile
File metadata and controls
68 lines (52 loc) · 1.35 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.PHONY: build-keria
VERSION=0.4.0
IMAGE_NAME=weboftrust/keria
VERSION_TAG=$(IMAGE_NAME):$(VERSION)
LATEST_TAG=$(IMAGE_NAME):latest
define DOCKER_WARNING
In order to use the multi-platform build enable the containerd image store
The containerd image store is not enabled by default.
To enable the feature for Docker Desktop:
Navigate to Settings in Docker Desktop.
In the General tab, check Use containerd for pulling and storing images.
Select Apply and Restart."
endef
build-wheel:
@uv build
build-keria: .warn
@docker build \
--build-arg KERI_AGENT_CORS=false \
--platform=linux/amd64,linux/arm64 \
--no-cache \
-f images/keria.dockerfile \
-t $(LATEST_TAG) \
-t $(VERSION_TAG) \
.
publish-keria:
@docker push $(VERSION_TAG) && docker push $(LATEST_TAG)
# UV development targets
install:
@uv sync
install-dev:
@uv sync --group dev
test:
@uv run pytest tests/
test-coverage:
@uv run pytest --cov=src --cov-report=term-missing --cov-report=xml tests/
lint:
@uv run ruff check src tests
lint-fix:
@uv run ruff check --fix src tests
format:
@uv run ruff format
format-check:
@uv run ruff format --check
clean:
@rm -rf build/ dist/ *.egg-info/
@find . -type d -name __pycache__ -delete
@find . -type f -name "*.pyc" -delete
.warn:
@echo -e ${RED}"$$DOCKER_WARNING"${NO_COLOUR}
RED="\033[0;31m"
NO_COLOUR="\033[0m"
export DOCKER_WARNING