#!/usr/bin/make -f

#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	dh_auto_install
	mv debian/python3-jupyter-server-terminals/usr/etc debian/python3-jupyter-server-terminals/etc

ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	mkdir -p debian/testhome
	export HOME=$$(pwd)/debian/testhome;
	    export JUPYTER_PLATFORM_DIRS=1; \
	    jupyter --paths; \
	    dh_auto_test
endif

execute_after_dh_auto_clean:
	rm -rf debian/testhome
