#!/usr/bin/make -f # DH_VERBOSE := 1 export LC_ALL=C.UTF-8 include /usr/share/dpkg/default.mk VERSION_UPSTREAM=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\(20[0-9][0-9]\.[0-9]\+\)\..*/\1/') TSORTER=q2_feature_table/_summarize/tabulate_seqs_assets VEGA=q2_feature_table/_summarize/summarize_assets/vega export PYBUILD_AFTER_BUILD=mkdir -pv {build_dir}/${TSORTER}/js {build_dir}/${VEGA}/js ; \ cp -av debian/JS/vega/vega.min.js {build_dir}/${VEGA}/js ; \ cp -av debian/JS/vega-embed/vega-embed.min.js {build_dir}/${VEGA}/js ; \ cp -av debian/JS/tsorter/tsorter.min.js {build_dir}/${TSORTER}/js # For testing, we need .egg-info so the entry points are available. export PYBUILD_BEFORE_TEST=python{version} setup.py develop --install-dir {build_dir} # Delete .egg-info and other files that were generated along with .egg-info export PYBUILD_BEFORE_INSTALL=rm -rvf {build_dir}/q2-feature-table.egg-* {build_dir}/site.py \ {build_dir}/.coverage* {build_dir}/easy-install.pth 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" $< >> $@ # 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 -- -s custom --test-args="cd {build_dir}; py.test-3 --cov=q2_feature_table" || true endif override_dh_auto_clean: dh_auto_clean rm -f q2_feature_table.egg-info/PKG-INFO q2_feature_table.egg-info/SOURCES.txt q2_feature_table.egg-info/dependency_links.txt q2_feature_table.egg-info/entry_points.txt q2_feature_table.egg-info/not-zip-safe q2_feature_table.egg-info/top_level.txt