Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export DH_VERBOSE=1
4
5 export PYBUILD_NAME=duecredit
6 export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/
7
8 PYVER = $(shell py3versions -sv)
9
10 export LC_ALL=C.UTF-8
11 # there is still some race condition somewhere so injection test on a fast system
12 # manages to fail... to slow things down -- turning on debug
13 export DUECREDIT_LOGLEVEL=DEBUG
14
15 %:
16 dh $@ --buildsystem=pybuild
17
18 # tests must be run from topdir
19 # else a citeproc error is triggered from build_dir
20 override_dh_auto_test:
21 for py in $(PYVER); do \
22 PYTHONPATH=`pybuild -p $$py --print {build_dir}` \
23 python$$py -mpytest -k "not (test_injector_del or test_import_doi)"; \
24 done