#!/usr/bin/make -f # -*- makefile -*- include /usr/share/dpkg/pkg-info.mk PYTHON3_VERSIONS = $(shell py3versions -r) PYTHON3_DEFAULT_VERSION = $(shell py3versions -d) pyalldo = set -e; $(foreach py, $(PYTHON3_VERSIONS), $(py) $(1);) # hatch-vcs derives the version from git, which is absent from the source package export SETUPTOOLS_SCM_PRETEND_VERSION = $(DEB_VERSION_UPSTREAM) BIN_NAME = gcovr BIN_DESCRIPTION = "generate simple coverage reports" %: dh $@ --buildsystem=pybuild # Upstream's test suite is a gcov integration suite requiring yaxmldiff, # which is not packaged in Debian. Run a smoke test instead. override_dh_auto_test: set -e; for py in $(PYTHON3_VERSIONS); do \ PYTHONPATH=src $$py -m gcovr --version; \ done execute_before_dh_installman: PYTHONPATH=debian/gcovr/usr/lib/$(PYTHON3_DEFAULT_VERSION)/dist-packages \ help2man \ --name $(BIN_DESCRIPTION) \ --no-info \ --version-string $(DEB_VERSION_UPSTREAM) \ --output debian/$(BIN_NAME).1 \ debian/gcovr/usr/bin/gcovr execute_after_dh_auto_clean: rm -rf build rm -rf *.egg-info