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 2024-02-16 21:42:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydub (Old) and /work/SRC/openSUSE:Factory/.python-pydub.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydub" Fri Feb 16 21:42:04 2024 rev:9 rq:1146988 version:0.25.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydub/python-pydub.changes 2022-12-08 16:52:06.787768058 +0100 +++ /work/SRC/openSUSE:Factory/.python-pydub.new.1815/python-pydub.changes 2024-02-16 21:42:11.277337227 +0100 @@ -1,0 +2,7 @@ +Fri Feb 16 03:31:40 UTC 2024 - Steve Kowalik <[email protected]> + +- Add patch fix-assertions.patch: + * Fix assetion methods. +- Switch to pyproject macros. + +------------------------------------------------------------------- New: ---- fix-assertions.patch BETA DEBUG BEGIN: New: - Add patch fix-assertions.patch: * Fix assetion methods. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydub.spec ++++++ --- /var/tmp/diff_new_pack.SFg080/_old 2024-02-16 21:42:11.885359165 +0100 +++ /var/tmp/diff_new_pack.SFg080/_new 2024-02-16 21:42:11.889359310 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pydub # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,13 +21,16 @@ Release: 0 Summary: Audio manipulation with Python License: MIT -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 +# PATCH-FIX-UPSTREAM gh#jiaaro/pydub#769 +Patch1: fix-assertions.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: ffmpeg BuildRequires: python-rpm-macros @@ -46,10 +49,10 @@ %autosetup -p1 -n pydub-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +61,6 @@ %files %{python_files} %license LICENSE -%{python_sitelib}/pydub-%{version}*-info +%{python_sitelib}/pydub-%{version}.dist-info %{python_sitelib}/pydub ++++++ fix-assertions.patch ++++++ >From 66c1bf7813ae8621a71484fdcdf609734c0d8efd Mon Sep 17 00:00:00 2001 From: sirfredrick <[email protected]> Date: Thu, 28 Dec 2023 13:37:36 -0800 Subject: [PATCH] Fix test assertions assertEquals() was a deprecated alias for assertEqual() and has been removed in Python 3.12 See https://docs.python.org/3/whatsnew/3.12.html#id3 --- test/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.py b/test/test.py index 1965761f..2da3d0fa 100644 --- a/test/test.py +++ b/test/test.py @@ -1086,7 +1086,7 @@ def test_from_file_clean_fail(self): tmp_wav_file.flush() self.assertRaises(CouldntDecodeError, AudioSegment.from_file, tmp_wav_file.name) files = os.listdir(tempfile.tempdir) - self.assertEquals(files, [os.path.basename(tmp_wav_file.name)]) + self.assertEqual(files, [os.path.basename(tmp_wav_file.name)]) if sys.platform == 'win32': os.remove(tmp_wav_file.name) @@ -1109,7 +1109,7 @@ def setUp(self): def test_split_on_silence_complete_silence(self): seg = AudioSegment.silent(5000) - self.assertEquals( split_on_silence(seg), [] ) + self.assertEqual( split_on_silence(seg), [] ) def test_split_on_silence_test1(self): self.assertEqual(
