#!/usr/bin/make -f

export PYBUILD_NAME=h3
# pyproject.toml sets addopts for pytest-cov, which is not needed here
export PYBUILD_TEST_ARGS=-o addopts= {dir}/tests

%:
	dh $@ --buildsystem=pybuild

# scikit-build-core copies the whole src/h3 package tree into dist-packages,
# including the build-time CMake files: drop them.
# (At this point the tree is still under usr/lib/python3.X/; dh_python3 moves it.)
execute_after_dh_auto_install:
	find debian/python3-h3 -name CMakeLists.txt -delete
