Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pydub for openSUSE:Factory checked in at 2022-12-08 16:51:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydub (Old) and /work/SRC/openSUSE:Factory/.python-pydub.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydub" Thu Dec 8 16:51:57 2022 rev:8 rq:1041290 version:0.25.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydub/python-pydub.changes 2021-03-11 20:13:12.752753204 +0100 +++ /work/SRC/openSUSE:Factory/.python-pydub.new.1835/python-pydub.changes 2022-12-08 16:52:06.787768058 +0100 @@ -1,0 +2,7 @@ +Wed Dec 7 23:23:13 UTC 2022 - Matej Cepl <[email protected]> + +- Add skip_libopenh264-7.patch which skips failing tests when + libopenh264 is not available (which is always, because the + library is in Packman). gh#jiaaro/pydub#700 + +------------------------------------------------------------------- New: ---- skip_libopenh264-7.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydub.spec ++++++ --- /var/tmp/diff_new_pack.HZHg5Q/_old 2022-12-08 16:52:07.407771238 +0100 +++ /var/tmp/diff_new_pack.HZHg5Q/_new 2022-12-08 16:52:07.411771258 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pydub # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pydub Version: 0.25.1 Release: 0 @@ -25,6 +24,9 @@ Group: Development/Languages/Python URL: https://github.com/jiaaro/pydub Source: https://github.com/jiaaro/pydub/archive/v%{version}.tar.gz#/pydub-%{version}.tar.gz +# PATCH-FIX-OPENSUSE skip_libopenh264-7.patch gh#jiaaro/pydub#700 [email protected] +# We don't have libopenh264-7 on the plain openSUSE +Patch0: skip_libopenh264-7.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: ffmpeg @@ -41,7 +43,7 @@ A Python module to manipulate audio with a high level interface. %prep -%setup -q -n pydub-%{version} +%autosetup -p1 -n pydub-%{version} %build %python_build @@ -51,10 +53,12 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export NO_OPENH264=1 %pyunittest -v test.test %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pydub-%{version}*-info +%{python_sitelib}/pydub %changelog ++++++ skip_libopenh264-7.patch ++++++ --- test/test.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) --- a/test/test.py +++ b/test/test.py @@ -796,6 +796,8 @@ class AudioSegmentTests(unittest.TestCas AudioSegment.from_file(self.mp3_file_path).export(tmp_webm_file, format="webm") + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_ogg(self): @@ -803,6 +805,8 @@ class AudioSegmentTests(unittest.TestCas AudioSegment.from_file(self.mp4_file_path).export(tmp_ogg_file, format="ogg") + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_mp3(self): @@ -810,6 +814,8 @@ class AudioSegmentTests(unittest.TestCas AudioSegment.from_file(self.mp4_file_path).export(tmp_mp3_file, format="mp3") + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_wav(self): @@ -817,6 +823,8 @@ class AudioSegmentTests(unittest.TestCas AudioSegment.from_file(self.mp4_file_path).export(tmp_wav_file, format="mp3") + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_mp3_with_tags(self): @@ -830,6 +838,8 @@ class AudioSegmentTests(unittest.TestCas format="mp3", tags=tags_dict) + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_mp3_with_tags_raises_exception_when_tags_are_not_a_dictionary(self): @@ -840,6 +850,8 @@ class AudioSegmentTests(unittest.TestCas format="mp3", tags=json) self.assertRaises(InvalidTag, func) + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp4_as_mp3_with_tags_raises_exception_when_id3version_is_wrong(self): @@ -854,6 +866,8 @@ class AudioSegmentTests(unittest.TestCas ) self.assertRaises(InvalidID3TagVersion, func) + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_export_mp3_with_tags(self): @@ -973,6 +987,8 @@ class AudioSegmentTests(unittest.TestCas # average volume should be reduced self.assertTrue(compressed.rms < self.seg1.rms) + @unittest.skipIf('NO_OPENH264' in os.environ, + "libopenh264 not available") @unittest.skipUnless('aac' in get_supported_decoders(), "Unsupported codecs") def test_exporting_to_ogg_uses_default_codec_when_codec_param_is_none(self):
