Codebase list python-pauvre / 53e9a100-ca13-4d67-8655-4e80cf5d8097/main debian / rules
53e9a100-ca13-4d67-8655-4e80cf5d8097/main

Tree @53e9a100-ca13-4d67-8655-4e80cf5d8097/main (Download .tar.gz)

rules @53e9a100-ca13-4d67-8655-4e80cf5d8097/main

7aac220
 
 
 
2a378fa
7aac220
 
 
 
78a72c0
 
487352f
 
 
 
 
 
4c472f0
4143a86
 
 
78a72c0
9d8cab9
dc920b5
 
9d8cab9
dc920b5
 
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_NAME=pauvre

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYBUILDDIR="$$(echo "$(CURDIR)"/.pybuild/cpython3_3.*/build)" \
	&& mkdir -p "$${PYBUILDDIR}/pauvre/tests/testdata/alignments" \
		"$${PYBUILDDIR}/pauvre/tests/testresults" \
	&& cp -r "$(CURDIR)/debian/tests/gff_files" \
		"$${PYBUILDDIR}/pauvre/tests/testdata" \
	&& BUILDDIR="$${PYBUILDDIR}" PATH="$(CURDIR)/debian/bin:$$PATH" \
		dh_auto_test \
	&& rm "$${PYBUILDDIR}/input" \
	&& rm -r "$${PYBUILDDIR}/pauvre/tests/testdata" \
		"$${PYBUILDDIR}/pauvre/tests/testresults"
endif

override_dh_installexamples:
	# Do not install test script in Python lib
	find debian -name scripts -type d | xargs rm -rf
	dh_installexamples
	sed -i 's/^git clone/#&/' `find debian -name test.sh`