#!/usr/bin/make -f # DH_VERBOSE := 1 export LC_ALL=C.UTF-8 # we need datatables.min.js for the tests export PYBUILD_BEFORE_TEST=ln -s \ /usr/share/javascript/jquery-datatables/jquery.dataTables.min.js \ {build_dir}/q2_metadata/templates/tabulate/datatables.min.js export PYBUILD_BEFORE_INSTALL=rm -vf {build_dir}/.coverage* export PYBUILD_AFTER_INSTALL=ln -vsf \ /usr/share/javascript/jquery-datatables/jquery.dataTables.min.js \ /{destdir}/{install_dir}/q2_metadata/templates/tabulate/datatables.min.js include /usr/share/dpkg/default.mk VERSION_UPSTREAM=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\(20[0-9][0-9]\.[0-9]\+\)\..*/\1/') 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" $< >> $@ %: dh $@ --buildsystem=pybuild # FIXME: similarly to the qiime and q2-types packages, 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 -- -s custom --test-args="cd {build_dir}; py.test-3 --cov=q2_metadata" || true endif