#! /usr/bin/make -f

export PYBUILD_NAME=pyglossary
export PYBUILD_DISABLE=test

# Upstream's setup.py derives the version from `git describe --always`. In a
# VCS checkout where no tag is reachable on the current branch, that returns
# the branch name (e.g. "debian/5.4.2-1"), which setuptools rejects as an
# invalid version. Upstream provides NO_GIT_VERSION to skip the probe; set it
# so that builds from the packaging repository work in both git and tarball
# modes.
export NO_GIT_VERSION=1

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