File: rules

package info (click to toggle)
python-portpicker 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: python: 1,119; makefile: 21; sh: 7
file content (28 lines) | stat: -rwxr-xr-x 694 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
#!/usr/bin/make -f

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

build3vers := $(shell py3versions -sv)
export PYBUILD_NAME = portpicker

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	rm -f debian/portserver.1
	dh_auto_clean

override_dh_installman:
	help2man --version-string="$(DEB_VERSION_UPSTREAM)" \
	         -n 'server to hand out unused port numbers' \
	         -v '-h' \
	         -N \
	         -i debian/extra-man.txt \
	         "python3 src/portserver.py" > debian/portserver.1
	dh_installman

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src python3 src/tests/portpicker_test.py
	PYTHONPATH=src python3 src/tests/portserver_test.py
endif