1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/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
export PYBUILD_DISABLE=python3.12
%:
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
find debian/$(DEB_SOURCE) -type f -name parsl.log -delete
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
|