#!/usr/bin/make -f # DH_VERBOSE := 1 export LC_ALL=C.UTF-8 export QIIMETEST=1 include /usr/share/dpkg/default.mk VERSION_UPSTREAM=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\(20[0-9][0-9]\.[0-9]\+\)\..*/\1/') export PYBUILD_TEST_ARGS=--ignore=q2cli/tests/test_usage.py %: dh $@ --buildsystem=pybuild debian/control: debian/control.in echo "# This file is autogenerated from control.in to update versioned dependencies" > $@ sed -e"s/@DEB_VERSION_UPSTREAM@/$(VERSION_UPSTREAM)/g" $< >> $@ override_dh_install: dh_install mkdir -p debian/$(DEB_SOURCE)/usr/share/bash-completion/completions mv debian/$(DEB_SOURCE)/usr/bin/tab-qiime debian/$(DEB_SOURCE)/usr/share/bash-completion/completions/qiime chmod -x debian/$(DEB_SOURCE)/usr/share/bash-completion/completions/qiime debian/control: debian/control.in echo "# This file is autogenerated from control.in to update versioned dependencies" > $@ sed -e"s/@DEB_VERSION_UPSTREAM@/$(VERSION_UPSTREAM)/g" $< >> $@ # FIXME: similarly to the qiime package, the build time testing fails, as the # Qiime plugin system is not fully available at this point of the package # construction. The test suite is only run at autopkgtest time, but this # is not ideal, since the only tested python version is the default one. override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) dh_auto_test --no-parallel || true endif