File: rules

package info (click to toggle)
python-av 14.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,664 kB
  • sloc: python: 4,712; sh: 175; ansic: 174; makefile: 123
file content (87 lines) | stat: -rwxr-xr-x 2,105 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/make -f

# needed to resolve DEB_HOST_ARCH DEB_DISTRIBUTION
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

TESTFILES_BROKEN = \
 tests/test_doctests.py \
 tests/test_timeout.py
TESTS_NET = \
 test_audio_transcode \
 test_bits_per_coded_sample \
 test_codec_delay \
 test_codec_tag \
 test_container_probing \
 test_context_manager \
 test_data \
 test_decode_audio_sample_count \
 test_decode_close_then_use \
 test_decoded_motion_vectors \
 test_decoded_time_base \
 test_decoded_video_frame_count \
 test_decode_half \
 test_deprecated_stream_seek \
 test_encoding \
 test_filter_flush \
 test_filter_h264_mp4toannexb \
 test_filter_output_parameters \
 test_flush_decoded_video_frame_count \
 test_frame_index \
 test_is_corrupt \
 test_is_discard \
 test_is_disposable \
 test_is_keyframe \
 test_loudnorm \
 test_movtext \
 test_no_side_data \
 test_opaque \
 test_parse \
 test_path_input \
 test_path_output \
 test_penguin_joke \
 test_printing_video_stream \
 test_printing_video_stream2 \
 test_reading \
 test_seek_end \
 test_seek_float \
 test_seek_int64 \
 test_seek_middle \
 test_seek_start \
 test_selection \
 test_set_duration \
 test_side_data \
 test_sky_timelapse \
 test_stream_probing \
 test_stream_seek \
 test_stream_tuples \
 test_str_input \
 test_str_output \
 test_subtitle_flush \
 test_subtitle_muxing \
 test_transcode \
 test_vobsub
ifeq (,$(filter ppc64 ppc64el,$(DEB_HOST_ARCH)))
TESTS_NET += \
 test_reformat_pixel_format_align \
 test_encoding_h264
endif

# ignore test failure on 64-bit PowerPC
# https://github.com/PyAV-Org/PyAV/issues/834
# https://github.com/PyAV-Org/PyAV/issues/1452
export PYBUILD_TEST_ARGS = \
 $(patsubst %,--ignore=%,$(TESTFILES_BROKEN)) \
 -k 'not $(subst $() , and not ,$(strip $(TESTS_NET)))'

%:
	dh $@

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