File: rules

package info (click to toggle)
python-m3u8 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 440 kB
  • sloc: python: 3,812; sh: 28; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 389 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
#! /usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME = m3u8

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

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/debian/CHANGELOG

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	set -e ; \
	python3 tests/m3u8server.py >/dev/null 2>&1 & \
	PID=$$! ; \
	dh_auto_test ; \
	kill -9 $$PID
endif