Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-audioread for openSUSE:Factory checked in at 2024-11-26 20:55:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-audioread (Old) and /work/SRC/openSUSE:Factory/.python-audioread.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-audioread" Tue Nov 26 20:55:57 2024 rev:13 rq:1226391 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-audioread/python-audioread.changes 2024-10-09 22:14:37.190439008 +0200 +++ /work/SRC/openSUSE:Factory/.python-audioread.new.28523/python-audioread.changes 2024-11-26 20:56:25.351738918 +0100 @@ -1,0 +2,6 @@ +Tue Nov 26 04:12:39 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch no-removed-formats.patch: + * Only use the rawread backend for Python 3.12 and below. + +------------------------------------------------------------------- New: ---- no-removed-formats.patch BETA DEBUG BEGIN: New: - Add patch no-removed-formats.patch: * Only use the rawread backend for Python 3.12 and below. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-audioread.spec ++++++ --- /var/tmp/diff_new_pack.xEL5D3/_old 2024-11-26 20:56:26.687794419 +0100 +++ /var/tmp/diff_new_pack.xEL5D3/_new 2024-11-26 20:56:26.691794586 +0100 @@ -23,6 +23,8 @@ License: MIT URL: https://github.com/beetbox/audioread Source0: https://github.com/beetbox/audioread/archive/v%{version}.tar.gz +# PATCH-FIX-OPENSUSE Do not use rawread backend on Python 3.13+ +Patch0: no-removed-formats.patch BuildRequires: %{ffmpeg_pref} BuildRequires: %{python_module base} BuildRequires: %{python_module flit-core} @@ -51,7 +53,7 @@ uncompressed audio formats). %prep -%setup -q -n audioread-%{version} +%autosetup -p1 -n audioread-%{version} %build %pyproject_wheel ++++++ no-removed-formats.patch ++++++ Index: audioread-3.0.1/audioread/__init__.py =================================================================== --- audioread-3.0.1.orig/audioread/__init__.py +++ audioread-3.0.1/audioread/__init__.py @@ -13,6 +13,7 @@ # included in all copies or substantial portions of the Software. """Multi-library, cross-platform audio decoding.""" +import sys from . import ffdec from .exceptions import DecodeError, NoBackendError @@ -76,9 +77,11 @@ def available_backends(flush_cache=False if BACKENDS and not flush_cache: return BACKENDS - # Standard-library WAV and AIFF readers. - from . import rawread - result = [rawread.RawAudioFile] + result = [] + if sys.version_info[:2] < (3, 13): + # Standard-library WAV and AIFF readers. + from . import rawread + result.append(rawread.RawAudioFile) # Core Audio. if _ca_available():