Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE=1
4 export PYBUILD_NAME=nose2
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 %:
9 dh $@ --buildsystem=pybuild
10
11 execute_before_dh_clean:
12 find . -type f \( -name '.coverage' -o -name '.coverage.*' \) -delete
13
14 execute_before_dh_sphinxdoc:
15 python3 -m sphinx -b html -d debian/tmp/doctrees docs \
16 debian/python-nose2-doc/usr/share/doc/python-nose2/html
17 rm -rf debian/tmp/doctrees
18
19 execute_after_dh_auto_install:
20 mv debian/python3-nose2/usr/bin/nose2 \
21 debian/python3-nose2/usr/bin/nose2-3
22
23 execute_before_dh_installman:
24 PYTHONPATH=${CURDIR} help2man -n nose2-3 -s 1 -o debian/nose2-3.1 \
25 --version-string=${DEB_VERSION} \
26 --no-discard-stderr --no-info \
27 debian/python3-nose2/usr/bin/nose2-3
28
29 override_dh_auto_test:
30 dh_auto_test -- --system=custom --test-args="{interpreter} -m nose2.__main__ -v"