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
|
BRZ ?= $(shell which brz)
BRZ_OPTIONS ?= -Derror
SETUP ?= $(PYTHON) ./setup.py
TESTS ?= "^breezy.plugins.debian." "^unittest"
all: update-pot
.PHONY: update-pot po/breezy-debian.pot
update-pot: po/breezy-debian.pot
TRANSLATABLE_PYFILES:=$(shell find . -name '*.py' \
| grep -v 'tests/' \
)
po/breezy-debian.pot: $(PYFILES) $(DOCFILES)
BRZ_PLUGINS_AT=builddeb@$(shell pwd) $(BRZ) export-pot \
--plugin=builddeb > po/breezy-debian.pot
echo $(TRANSLATABLE_PYFILES) | xargs \
xgettext --package-name "breezy-debian" \
--msgid-bugs-address "<bazaar@lists.canonical.com>" \
--copyright-holder "Canonical Ltd. <bazaar@lists.canonical.com>" \
--from-code ISO-8859-1 --sort-by-file --join --add-comments=i18n: \
-d breezy-debian -p po -o breezy-debian.pot
check:: testsuite
testsuite:
BRZ_PLUGINS_AT=debian@$(shell pwd) $(BRZ) $(BRZ_OPTIONS) selftest $(TEST_OPTIONS) $(TESTS)
check:: flake8
flake8:
flake8 . scripts/deb-*
mypy:
BRZ_PLUGINS_AT=debian@$(shell pwd) mypy -p breezy.plugins.debian
docker:
buildah build -t ghcr.io/breezy-team/deb-new-upstream:latest -f Dockerfile.deb-new-upstream .
buildah push ghcr.io/breezy-team/deb-new-upstream:latest
buildah build -t ghcr.io/breezy-team/deb-auto-backport:latest -f Dockerfile.deb-auto-backport .
buildah push ghcr.io/breezy-team/deb-auto-backport:latest
buildah build -t ghcr.io/breezy-team/deb-move-orphaned:latest -f Dockerfile.deb-move-orphaned .
buildah push ghcr.io/breezy-team/deb-move-orphaned:latest
buildah build -t ghcr.io/breezy-team/deb-import-uncommitted:latest -f Dockerfile.deb-import-uncommitted .
buildah push ghcr.io/breezy-team/deb-import-uncommitted:latest
|