#!/usr/bin/make -f

export PYBUILD_NAME=lib4sbom
export PYBUILD_DESTDIR=$(CURDIR)/debian/python3-lib4sbom
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/lib/python3/dist-packages
export PYBUILD_TEST_PYTEST=1
export TESTS_TO_EXCLUDE=not TestCycloneDXGenerator and \
 not TestCcycloneDX_parser and \
 not TestGenerator and \
 not TestOutput and \
 not TestSPDX_Generator and \
 not TestSPDX_Parser and \
 not test_set_checksum and \
 not test_set_type and \
 not test_set_supplier and \
 not test_set_originator and \
 not test_set_downloadlocation and \
 not test_set_homepage and \
 not test_set_checksum_multiple and \
 not test_set_externalreference and \
 not test_set_externalreference_multiple and \
 not test_get_type and \
 not test_get_files and \
 not test_get_packages and \
 not test_get_relationships
export PYBUILD_TEST_ARGS=test -k "${TESTS_TO_EXCLUDE}"
export DH_ALWAYS_EXCLUDE=test

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