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 69 70 71 72 73 74 75 76
|
VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d " " -f 2)
check:: style testsuite tag-status
FIXERS = $(patsubst fixers/%.sh,%,$(wildcard fixers/*.sh)) $(patsubst fixers/%.py,%,$(wildcard fixers/*.py))
$(patsubst %,check-fixer-%,$(FIXERS)): check-fixer-%:
PYTHONPATH=$(PWD):$(PYTHONPATH) python3 -m lintian_brush.tests.fixers --fixer=$*
.PHONY: style testsuite unsupported
style::
flake8
typing::
mypy lintian_brush fixers
tag-status::
python3 tag-status.py --check
testsuite::
python3 -m unittest lintian_brush.tests.test_suite
testsuite-core:
python3 -m unittest lintian_brush.tests.core_test_suite
README.md::
PYTHONPATH=$(PWD):$(PYTHONPATH) ./buildtools/update-readme.py
lintian-tags:
lintian-explain-tags --list-tags > lintian-tags
.PHONY: lintian-tags lintian-brush-tags
lintian-brush-tags:
PYTHONPATH=$(PWD):$(PYTHONPATH) python3 -m lintian_brush --list-tags 2> lintian-brush-tags
unsupported: lintian-tags lintian-brush-tags
awk 'NR==FNR{a[$$0]=1;next}!a[$$0]' lintian-brush-tags lintian-tags
update-readme:
brz diff README.md
$(MAKE) README.md
brz diff README.md || brz commit -m "Update list of fixers in README.md" README.md
release: check update-readme
./setup.py sdist
twine upload --sign dist/lintian-brush-$(VERSION).tar.gz
update-spdx:
python3 download-license-data.py > spdx.json
brz diff spdx.json || brz commit -m "Update SPDX license data" spdx.json
update-key-package-versions:
python3 key-package-versions.py
brz diff key-package-versions.json || brz commit -m "Update key package versions" key-package-versions.json
update-renamed-tags:
python3 renamed-tags.py
brz diff renamed-tags.json || brz commit -m "Update renamed tags" renamed-tags.json
update: update-spdx update-readme update-renamed-tags update-key-package-versions
next:
python3 next.py
docker:
buildah build -t ghcr.io/jelmer/lintian-brush:latest Dockerfile.lintian-brush .
buildah push ghcr.io/jelmer/lintian-brush:latest
buildah build -t ghcr.io/jelmer/deb-scrub-obsolete:latest Dockerfile.deb-scrub-obsolete .
buildah push ghcr.io/jelmer/deb-scrub-obsolete:latest
buildah build -t ghcr.io/jelmer/debianize:latest Dockerfile.debianize .
buildah push ghcr.io/jelmer/debianize:latest
buildah build -t ghcr.io/jelmer/debianize:latest Dockerfile.debianize .
buildah push ghcr.io/jelmer/debianize:latest
|