-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 1021 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 1021 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
PKG_VER := $(shell grep 'version = "' pyproject.toml | head -n 1 | cut -d '"' -f 2 )
API_VER := $(shell grep 'API_VERSION' smtp_dane_verify/api.py | head -n 1 | cut -d '"' -f 2 )
.PHONY: release publishpypi docs
README.md: README.adoc
asciidoctor -b docbook5 -o - README.adoc | pandoc -f docbook -t markdown_strict -o README.md
docs: README.md
release: README.md
@echo "Package version (pyproject.toml) is $(PKG_VER)"
@echo "API version (api.py) is defined as $(API_VER)"
ifneq ($(PKG_VER), $(API_VER))
@echo "API and package version are not equal, aborting package build."
exit 1
endif
uv build
docker buildx build -t sys4ag/smtp-dane-verify:$(PKG_VER) -t sys4ag/smtp-dane-verify:latest --platform linux/amd64,linux/arm64 .
# docker image tag sys4ag/smtp-dane-verify:$(PKG_VER) sys4ag/smtp-dane-verify:latest
publishpypi: dist/smtp_dane_verify-$(PKG_VER)-py3-none-any.whl dist/smtp_dane_verify-$(PKG_VER).tar.gz
uv publish
publishdocker:
docker login
docker push sys4ag/smtp-dane-verify
docker logout