#!/usr/bin/make -f

%:
	dh $@ --buildsystem=python_distutils --with python2,python3

ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	PYTHONPATH=. \
        LC_ALL=en_US.UTF-8 \
	nosetests --with-coverage --cover-package=xmltodict
endif

override_dh_auto_clean:
	dh_auto_clean
	[ ! -d .coverage ] || rm -r .coverage
	[ ! -d xmltodict.egg-info ] || rm -r xmltodict.egg-info
