#!/usr/bin/make -f
# Build rules for the Debian package. pybuild picks up the PEP 517 backend
# (Hatchling) and the src layout from pyproject.toml on its own; the console
# entry point from [project.scripts] becomes /usr/bin/maildigest.
export PYBUILD_NAME = maildigest

%:
	dh $@ --with python3 --buildsystem=pybuild

# pybuild would run `python3 -m unittest discover` here, which imports the
# package. The runtime dependencies are Depends, not Build-Depends, and are
# deliberately absent from the build container — so that import can only fail.
# The real checks live elsewhere and are stronger: ci.yml runs the full pytest
# suite against the source, and the install test in release.yml installs the
# built package with its dependencies and runs the program.
override_dh_auto_test:
	:
