#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=pyulog
export PYBUILD_SYSTEM=pyproject
export PYBUILD_TEST_PYTEST=1
# GitHub source archives omit the libevents submodule used by ulog_messages.
export PYBUILD_AFTER_BUILD=cp -a {dir}/debian/vendor/libevents_parse {build_dir}/pyulog/
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYULOG=$(DEB_VERSION_UPSTREAM)

%:
	dh $@ --buildsystem=pybuild
