#!/usr/bin/make -f

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

export PYBUILD_NAME=tempora

# also run test_schedule.py, upstream git has a similar combined tests dir
export PYBUILD_BEFORE_TEST=cp -va {dir}/pytest.ini {dir}/tests {build_dir}; cp -va {dir}/tempora/tests/test_schedule.py {build_dir}/tests/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/pytest.ini {build_dir}/tests

# affected by #944026 (freezegun using time.clock which was removed in python 3.8)
export PYBUILD_DISABLE_python3.8=test

%:
	dh $@ --with python3 --buildsys=pybuild --test-pytest

override_dh_installexamples:
	# install tiny, autogenerated calc-prorate script as an example only
	dh_installexamples
	rm -vrf debian/python3-tempora/usr/bin
