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

include /usr/share/dpkg/pkg-info.mk
VERSION_UPSTREAM = $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+[^+]*//')
export SETUPTOOLS_SCM_PRETEND_VERSION = $(VERSION_UPSTREAM)

export PYBUILD_NAME = ufoLib2

# skip tests with Ubuntu font which is not distributable in Debian main
# repository.
export PYBUILD_TEST_ARGS = -k "not lazy_data_loading_ and not copyDataFromGlyph and not test_appendContour and not test_constructor_from_path and not test_deepcopy_lazy_object and not test_unlazify and not test_font_ and not test_nondefault_layer_name and not test_bounds"

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

override_dh_clean:
	dh_clean
	rm src/ufoLib2/_version.py
