#!/usr/bin/make -f #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk # These tests require a running LDAP server disabled_tests = \ tests/test_asyncio.py \ tests/test_gevent.py \ tests/test_ldapclient.py \ tests/test_ldapconnection.py \ tests/test_ldapentry.py \ tests/test_ldapreference.py \ tests/test_pool.py \ tests/test_tornado.py \ tests/test_trio.py \ tests/test_utils.py docs = {dir}/docs/_build export PYBUILD_AFTER_CLEAN = rm -rf $(docs) export PYBUILD_AFTER_INSTALL = \ PYTHONPATH={destdir}/{install_dir} \ {interpreter} -m sphinx -N -b html {dir}/docs/ $(docs) export PYBUILD_TEST_ARGS = $(addprefix --ignore=,$(disabled_tests)) %: dh $@ --with sphinxdoc --buildsystem=pybuild override_dh_auto_build: @echo 'blhc: ignore-line-regexp: .*test_krb5\.o .*test_krb5' dh_auto_build -O--buildsystem=pybuild execute_after_dh_auto_install: rm -rvf debian/tmp/usr/lib/python3.*/dist-packages/.pytest_cache/