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

export PYBUILD_NAME=monty
export PYBUILD_TEST_ARGS={dir} -k 'not test_pydantic_integrations and not test_install_except_hook and not (TestCheckType and test_pandas)'


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

execute_after_dh_auto_clean:
	rm -rf .pytest_cache .pybuild
	rm -rf docs/doctrees docs/html
	rm -rf src/monty.egg-info

override_dh_auto_test:
	PYTHONPATH=. dh_auto_test

execute_before_dh_auto_build:
	$(MAKE) -C docs html
