#!/usr/bin/make -f

%:
	dh $@

# Upstream ships a dev Makefile (docker builds, cert generation, uv-based
# tooling) that is unrelated to installing the package; skip dh's automatic
# buildsystem detection entirely (installation is driven by
# debian/deye-inverter-mqtt.install instead).
override_dh_auto_configure:

override_dh_auto_build:

override_dh_auto_test:
	PYTHONPATH=src python3 -m pytest tests/ -k "not inttest"

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/deye-inverter-mqtt/usr/share/deye-inverter-mqtt/deye_solar_sell.py

override_dh_auto_clean:
	rm -rf src/__pycache__ tests/__pycache__ plugins/__pycache__ .pytest_cache
