File: rules

package info (click to toggle)
duecredit 0.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 564 kB
  • sloc: python: 3,808; makefile: 16
file content (28 lines) | stat: -rwxr-xr-x 733 bytes parent folder | download
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
#! /usr/bin/make -f

export DH_VERBOSE=1

export PYBUILD_NAME=duecredit
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/

PYVER = $(shell py3versions -sv)

export LC_ALL=C.UTF-8
# there is still some race condition somewhere so injection test on a fast system
# manages to fail... to slow things down -- turning on debug
export DUECREDIT_LOGLEVEL=DEBUG

%:
	dh $@ --buildsystem=pybuild

override_dh_clean:
	dh_clean
	-rm duecredit/version.py  # autogenerated

# tests must be run from topdir
# else a citeproc error is triggered from build_dir
override_dh_auto_test:
	for py in $(PYVER); do \
	  PYTHONPATH=`pybuild -p $$py --print {build_dir}` \
	  python$$py -mpytest -k "not (test_injector_del or test_import_doi)"; \
	done