#!/usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME = indexed-gzip

# Disabling slow_test avoids timeouts on several architectures and
# generally avoids hammering on continuous integration infrastructure.
export PYBUILD_TEST_ARGS = -k 'not slow_test'

# one ring to rule them all ...
%:
	dh $@ --buildsystem=pybuild


clean::
	python3 setup.py clean
	dh_clean
	# Ahhhhhhh!
	rm -rf .pybuild build .pytest_cache
	-rm -rf indexed_gzip.egg-info/
	# tests leave a bit of trash behind
	-rm -f ctest_*.gz
	-rm -rf runtests

execute_after_dh_install:
	dh_numpy3
	# tests leave a bit of trash behind (bis repetita)
	-rm -vf ./debian/python3-indexed-gzip/usr/lib/python3*/dist-packages/ctest_zran_*
