#!/usr/bin/make -f
#export DH_VERBOSE = 1

# Skip tests requiring whey_conda and whey_pth as they are not available in Debian
export PYBUILD_TEST_ARGS=--ignore=tests/test_utils.py -k "not whey_conda and not whey_pth and not binary_conda"

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)
%:
	dh $@ --buildsystem=pybuild

execute_before_dh_installman:
	txt2man -s 1 -v "whey" -t "whey" \
	-r "$(VERSION)" -d "$(DEBDATE)" debian/manpage/whey.txt > debian/manpage/whey.1
