File: rules

package info (click to toggle)
python-moreorless 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 180 kB
  • sloc: python: 357; makefile: 42; sh: 11
file content (18 lines) | stat: -rwxr-xr-x 518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=moreorless

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom dh_auto_test -- \
	    --test-args="set -e; \
	                 cp -ar {dir}/moreorless/tests \
	                        {build_dir}/moreorless; \
	                 cd {build_dir}; \
	                 {interpreter} -m moreorless.tests --verbose"

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python3-moreorless/usr/lib/python3*/dist-packages/moreorless/tests