File: rules

package info (click to toggle)
python-av 10.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,500 kB
  • sloc: python: 5,917; sh: 184; makefile: 119
file content (58 lines) | stat: -rwxr-xr-x 1,510 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
#!/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_codec_tag \
 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_transcode \
 test_vobsub

# ignore test_reformat_pixel_format_align failing on PowerPC
# https://github.com/PyAV-Org/PyAV/issues/834
export PYBUILD_TEST_ARGS = \
 $(patsubst %,--ignore=%,$(BROKEN_TESTFILES)) \
 -k 'not $(subst $() , and not ,$(strip $(BROKEN_TESTS)))' \
 $(if $(or $(DEB_SUITE_EXP),$(filter ppc64 ppc64el,$(DEB_HOST_ARCH))),|| true)

# work around upstream resolving FFMpeg headers during cleanup
# https://github.com/PyAV-Org/PyAV/issues/915
export PYBUILD_CLEAN_ARGS = || true

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

%:
	dh $@