File: rules

package info (click to toggle)
python-coards 1.0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 144 kB
  • sloc: python: 181; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

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

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="cd {build_dir}; {interpreter} -c 'import coards; coards._test()'" \
		dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs NEWS.txt