#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

# Mopidy-SomaFM gets its version from setuptools-scm. A build in the packaging git
# checkout would make setuptools-scm read the version from the git tags of that
# repository, which are the Debian tags. Give it the upstream version instead.
export SETUPTOOLS_SCM_PRETEND_VERSION = $(DEB_VERSION_UPSTREAM)

# Every test in tests/test_somafm.py asks https://api.somafm.com/ or
# https://somafm.com/ for data. A build has no network access. Two of them pass
# without it, but only because a failed request returns the input unchanged.
export PYBUILD_TEST_ARGS = --ignore tests/test_somafm.py

%:
	dh $@ --buildsystem=pybuild

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.md
