Accepting request 1226391 from devel:languages:python
- Add patch no-removed-formats.patch: * Only use the rawread backend for Python 3.12 and below. OBS-URL: https://build.opensuse.org/request/show/1226391 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-audioread?expand=0&rev=13
This commit is contained in:
commit
05b57c0633
27
no-removed-formats.patch
Normal file
27
no-removed-formats.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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():
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 04:12:39 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch no-removed-formats.patch:
|
||||||
|
* Only use the rawread backend for Python 3.12 and below.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 9 15:29:15 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed Oct 9 15:29:15 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ Summary: Wrapper for audio decoding via selectable backends
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/beetbox/audioread
|
URL: https://github.com/beetbox/audioread
|
||||||
Source0: https://github.com/beetbox/audioread/archive/v%{version}.tar.gz
|
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: %{ffmpeg_pref}
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module flit-core}
|
BuildRequires: %{python_module flit-core}
|
||||||
@ -51,7 +53,7 @@ currently supports:
|
|||||||
uncompressed audio formats).
|
uncompressed audio formats).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n audioread-%{version}
|
%autosetup -p1 -n audioread-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user