#!/usr/bin/make -f

#export DH_VERBOSE = 1

export PYBUILD_NAME=elastic-apm
export PYBUILD_AFTER_INSTALL=rm -fr {destdir}/usr/lib/python3*/dist-packages/elastic_apm-*/top_level.txt
export PYTHONWARNINGS=default,ignore::DeprecationWarning:jsonschema
export PYBUILD_TEST_ARGS=\
 -W ignore::DeprecationWarning\
 -m 'not flaky'\
 -k 'not test_server_cert_pinning\
 and not test_metadata_prepended\
 '

#disable proxy for localhost tests
export no_proxy=localhost,127.0.0.1
export NO_PROXY=localhost,127.0.0.1

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	pandoc -s docs/reference/*.md -t plain -o docs/reference.txt
