File: rules

package info (click to toggle)
tap.py 2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 648 kB
  • sloc: python: 1,869; makefile: 163; sh: 50
file content (36 lines) | stat: -rwxr-xr-x 1,076 bytes parent folder | download
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
31
32
33
34
35
36
#!/usr/bin/make -f
#DH_VERBOSE = 1

export PYBUILD_NAME = tap

# main packaging script based on dh7 syntax
%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild


override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html # HTML generator
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/ build/man # HTML generator

override_dh_auto_test:
	# The tests display messages according to the LANGUAGE, which
	# can vary, so we need to be using a value of LC_MESSAGES or
	# LC_ALL that can represent codepoints beyond ASCII.
	LC_ALL=C.UTF-8 dh_auto_test

override_dh_install:
	install -d $(CURDIR)/debian/tappy/usr/bin
	mv $(CURDIR)/debian/python3-tap/usr/bin/tappy $(CURDIR)/debian/tappy/usr/bin/
	rm -f $(CURDIR)/debian/python-tap/usr/bin/tappy
	dh_install -O--buildsystem=pybuild
	# Avoid namespace-grab, and file conflict with node-tap
	rm -f debian/*/usr/bin/tap


override_dh_sphinxdoc:
	dh_sphinxdoc -p python-tap-doc

override_dh_auto_clean:
	dh_auto_clean
	make -C docs clean