#!/usr/bin/make -f

export PYBUILD_NAME=osteosarc
export PYBUILD_SYSTEM=pyproject
export PYBUILD_TEST_PYTEST=1
export PYBUILD_DESTDIR=debian/tmp
export PYBUILD_INSTALL_DIR=/usr/lib/python3/dist-packages
# The wheel-version test leaves setuptools build output beside the module.
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.pytest_cache {build_dir}/build {build_dir}/osteosarc.egg-info

# Allow the local HTTP fixtures through pybuild's blocking proxy.
export no_proxy=localhost,127.0.0.1,::1

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
	# datacache's PyArrow dependency does not work with Python 3.15 yet.
	PYBUILD_INTERPRETERS=python3.14 dh_auto_test
