#!/usr/bin/make -f DH_VERBOSE := 1 include /usr/share/dpkg/default.mk export PYBUILD_NAME=cwltool export PYBUILD_TEST_ARGS=-n=auto export PYBUILD_AFTER_TEST=rm -Rf {build_dir}/tmp/ {build_dir}/main.cwl {build_dir}/output.txt* 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); {interpreter} -m pytest \ -k 'not test_http_path_mapping and not test_pack and not test_get_subgraph and not test_use_metadata and not test_load_graph_fragment_from_packed and not test_udocker_usage_should_not_write_cid_file and not test_udocker_should_display_memory_usage' \ -n auto --dist=loadfile --ignore cwltool/schemas/ -s --pyargs cwltool" dh_auto_test endif