File: rules

package info (click to toggle)
nose2 0.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,912 kB
  • sloc: python: 10,721; makefile: 126
file content (30 lines) | stat: -rwxr-xr-x 796 bytes parent folder | download | duplicates (2)
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

#export DH_VERBOSE=1
export PYBUILD_NAME=nose2

include /usr/share/dpkg/pkg-info.mk

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

override_dh_sphinxdoc:
	python3 -m sphinx -b html -d debian/tmp/doctrees docs \
		debian/python-nose2-doc/usr/share/doc/python-nose2/html
	rm -rf debian/tmp/doctrees
	dh_sphinxdoc

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-nose2/usr/bin/nose2 \
	   debian/python3-nose2/usr/bin/nose2-3

override_dh_installman:
	PYTHONPATH=${CURDIR} help2man -n nose2-3 -s 1 -o debian/nose2-3.1 \
		 --version-string=${DEB_VERSION} \
		 --no-discard-stderr --no-info \
		 debian/python3-nose2/usr/bin/nose2-3
	dh_installman

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} -m nose2.__main__ -v"