File: rules

package info (click to toggle)
tnseq-transit 3.3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 122,352 kB
  • sloc: python: 14,793; makefile: 143; sh: 49
file content (30 lines) | stat: -rwxr-xr-x 777 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
29
30
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_install:
	mv debian/$(DEB_SOURCE)/usr/bin/tpp debian/$(DEB_SOURCE)/usr/bin/transit-tpp

# Upstream tarball contains a dangling symlink to local data file - hack around this
override_dh_auto_configure:
	mkdir -p tests_invalid_data
	if [ -L tests/H37Rv.fna ] && ! [ -e tests/H37Rv.fna ] \
	; then mv tests/H37Rv.fna tests_invalid_data \
	; fi
	dh_auto_configure

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -- --system=custom --test-args="PYTHONPATH=tests {interpreter} -m unittest -v tests/*.py"
endif


execute_after_dh_auto_clean:
	rm -rf tests_invalid_data
	rm -rf tnseq_transit.egg-info