File: rules

package info (click to toggle)
python-roman 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 172 kB
  • sloc: python: 334; sh: 14; makefile: 9
file content (13 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

export PYBUILD_NAME=roman

%:
	dh $@ --with python2,python3 --buildsystem pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_BEFORE_TEST="cp -rv {dir}/tests {build_dir}" \
	PYBUILD_TEST_ARGS="cd {build_dir}; python{version} tests/romantest.py --verbose" \
	PYBUILD_AFTER_TEST="rm -rfv {build_dir}/tests" \
	dh_auto_test