File: rules

package info (click to toggle)
python-av 8.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,440 kB
  • sloc: python: 5,454; sh: 203; makefile: 117
file content (50 lines) | stat: -rwxr-xr-x 1,185 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

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

# detect if build targets experimental suite (or is a draft)
DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))

# avoid shipping sandbox test files
export DH_OPTIONS = -O--buildsystem=pybuild

BROKEN_TESTFILES = \
 tests/test_doctests.py \
 tests/test_timeout.py
BROKEN_TESTS = \
 test_audio_transcode \
 test_container_probing \
 test_context_manager \
 test_data \
 test_decode_audio_sample_count \
 test_decoded_motion_vectors \
 test_decoded_time_base \
 test_decoded_video_frame_count \
 test_decode_half \
 test_deprecated_stream_seek \
 test_encoding \
 test_movtext \
 test_parse \
 test_reading \
 test_seek_end \
 test_seek_float \
 test_seek_int64 \
 test_seek_middle \
 test_seek_start \
 test_selection \
 test_stream_probing \
 test_stream_seek \
 test_stream_tuples \
 test_vobsub
export PYBUILD_TEST_ARGS = \
 $(patsubst %,--ignore=%,$(BROKEN_TESTFILES)) \
 -k 'not $(subst $() , and not ,$(strip $(BROKEN_TESTS)))' \
 $(if $(DEB_SUITE_EXP),|| true)

# avoid shipping sandbox test files
override_dh_auto_install:
	dh_auto_install
	find debian/*/usr/lib -path '*/sandbox*' -delete

%:
	dh $@