#!/usr/bin/make -f DH_VERBOSE := 1 include /usr/share/dpkg/default.mk export PYBUILD_NAME=cwltool export PYBUILD_TEST_ARGS=-n=auto export HOME=$(shell echo $$PWD"/fakehome") %: dh $@ --with python3 --buildsystem=pybuild debian/cwltool.1: debian/rules debian/cwltool.help2man python3 setup.py develop --user help2man --version-string $(DEB_VERSION_EPOCH_UPSTREAM) -I debian/cwltool.help2man -N \ -o debian/cwltool.1 'python3 -m cwltool' sed -i 's/__main__.py/cwltool/g' debian/cwltool.1 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) override_dh_installman: debian/cwltool.1 dh_installman else override_dh_installman: endif override_dh_auto_install: dh_auto_install find debian -name '*.cwl' -exec chmod a+x {} \; find debian -name '*.json' -exec chmod a-x {} \; override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES))) dh_auto_install PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="cd {dir}; export PATH={destdir}/usr/bin:$$PATH ; \ cd {build_dir}; export PYTHONPATH=$$(pwd); python3 -m pytest \ -k 'not test_http_path_mapping and not test_pack and not test_get_subgraph and not TestUdocker' \ -n auto --dist=loadfile --ignore cwltool/schemas/ --pyarg cwltool" dh_auto_test endif