#!/usr/bin/make -f

#export DH_VERBOSE = 1

# Skip tests: test code uses assertRegexpMatches which was removed in
# Python 3.12 (deprecated since 3.2), causing AttributeError in dh_auto_test.
export DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nocheck

DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/./g')
export PBR_VERSION=$(VERSION)

export PYBUILD_NAME=monasca-statsd

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