#! /usr/bin/make -f

# The full source version (e.g. 0.4.16-ok1) is not a valid PEP 440 version,
# which makes setuptools_scm fail with "Invalid version". Pass only the
# upstream part (0.4.16) to setuptools_scm.
export PYBUILD_NAME=axisregistry
export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog -S version | cut -d- -f1)

%:
	dh $@ --buildsystem=pybuild
