From 2f2ca1101de256d9aec37e54459807205f32408a3b03ed33971fbf84a4fd7f44 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 28 Jan 2026 08:44:31 +0000 Subject: [PATCH] - Update to 0.11.0: * Bump minimum matplotlib to 3.5.0 by @bmcfee in #1839 * Fix name collision for norm argument in mfcc by @ssslakter in #1844 * Remove .H for conjugate().T by @bmcfee in #1851 * [documentation][Issue #1855] Update Fast Mellin Transform doc example by @dhunstack in #1856 * fix onset documentation specshow samplerate by @BenedictSt in #1858 * Updating github issue templates by @bmcfee in #1860 * Faster abs2 on real inputs by @bmcfee in #1864 * Revised dtw docstring, fixes #1741 by @bmcfee in #1866 * Various doc updates 0.11 by @bmcfee in #1878 * Improved CMND implementation for YIN / pYIN by @dsuedholt in #1882 * Update effects.py by @scottvr in #1891 * bump codecov action to v5 by @bmcfee in #1898 * declare numba requirement before numpy by @dsuedholt in #1897 * allow skipping linkchecks on ~dpwe by @bmcfee in #1899 * fixed pooch registry regression from #1829 by @bmcfee in #1900 * Modernize for 2024/5 by @bmcfee in #1903 * implemented testing with network isolation by @bmcfee in #1911 * 0.11.0rc0 release prep by @bmcfee in #1907 * Deprecate set_fftlib, update fftpack uses by @bmcfee in #1916 * PR for 0.11.0rc1 by @bmcfee in #1913 * Get samplerate installing from source on windows for python 3.13 by @bmcfee in #1919 * Trying on the new linux-arm64 runners by @bmcfee in #1921 * 0.11.0 final by @bmcfee in #1922 - Drop upstreamed patch csr_matrix-attr-H.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=57 --- csr_matrix-attr-H.patch | 20 ---------- librosa-0.10.2.post1.tar.gz | 3 -- librosa-0.11.0.tar.gz | 3 ++ ... => librosa-static-test-data-0.11.0.tar.gz | 0 mark-network-tests.patch | 37 ++++++++----------- python-librosa.changes | 33 +++++++++++++++++ python-librosa.spec | 9 ++--- 7 files changed, 54 insertions(+), 51 deletions(-) delete mode 100644 csr_matrix-attr-H.patch delete mode 100644 librosa-0.10.2.post1.tar.gz create mode 100644 librosa-0.11.0.tar.gz rename librosa-static-test-data-0.10.2.post1.tar.gz => librosa-static-test-data-0.11.0.tar.gz (100%) diff --git a/csr_matrix-attr-H.patch b/csr_matrix-attr-H.patch deleted file mode 100644 index 56297d1..0000000 --- a/csr_matrix-attr-H.patch +++ /dev/null @@ -1,20 +0,0 @@ -From 44baef3d4e748135575e9b688894c01b37a3685b Mon Sep 17 00:00:00 2001 -From: Brian McFee -Date: Wed, 26 Jun 2024 10:08:45 -0400 -Subject: [PATCH] fix #1849 - ---- - librosa/core/constantq.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/librosa/core/constantq.py -+++ b/librosa/core/constantq.py -@@ -707,7 +707,7 @@ def icqt( - ) - - # Transpose the basis -- inv_basis = fft_basis.H.todense() -+ inv_basis = fft_basis.conjugate().T.todense() - - # Compute each filter's frequency-domain power - freq_power = 1 / np.sum(util.abs2(np.asarray(inv_basis)), axis=0) diff --git a/librosa-0.10.2.post1.tar.gz b/librosa-0.10.2.post1.tar.gz deleted file mode 100644 index 625b000..0000000 --- a/librosa-0.10.2.post1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:531269ad17a727616cc683bc718222328e7aa3b6c143c67ea0bc283d1a5b284b -size 2334630 diff --git a/librosa-0.11.0.tar.gz b/librosa-0.11.0.tar.gz new file mode 100644 index 0000000..1077628 --- /dev/null +++ b/librosa-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6af22600c52e5b844cf73c699b7c0905ed9fe0b9f17b230eec697bce3368dd15 +size 2339589 diff --git a/librosa-static-test-data-0.10.2.post1.tar.gz b/librosa-static-test-data-0.11.0.tar.gz similarity index 100% rename from librosa-static-test-data-0.10.2.post1.tar.gz rename to librosa-static-test-data-0.11.0.tar.gz diff --git a/mark-network-tests.patch b/mark-network-tests.patch index d6ed058..4fc835e 100644 --- a/mark-network-tests.patch +++ b/mark-network-tests.patch @@ -4,8 +4,10 @@ tests/test_util.py | 3 +++ 3 files changed, 6 insertions(+) ---- a/setup.cfg -+++ b/setup.cfg +Index: librosa-0.11.0/setup.cfg +=================================================================== +--- librosa-0.11.0.orig/setup.cfg ++++ librosa-0.11.0/setup.cfg @@ -14,6 +14,8 @@ addopts = --mpl --mpl-baseline-path=tes filterwarnings = ignore::DeprecationWarning:audioread.* @@ -13,11 +15,13 @@ +markers = + network: tests requiring network connection + [flake8] - count = True ---- a/tests/test_multichannel.py -+++ b/tests/test_multichannel.py -@@ -914,6 +914,7 @@ def test_click_multi(): +Index: librosa-0.11.0/tests/test_multichannel.py +=================================================================== +--- librosa-0.11.0.orig/tests/test_multichannel.py ++++ librosa-0.11.0/tests/test_multichannel.py +@@ -918,6 +918,7 @@ def test_click_multi(): assert np.allclose(yout[..., 2000:2100], click) @@ -25,16 +29,11 @@ def test_nnls_multi(s_multi): # Verify that a stereo melspectrogram can be reconstructed ---- a/tests/test_util.py -+++ b/tests/test_util.py -@@ -1385,17 +1385,20 @@ def test_phasor(dtype, angles, mag): - assert z2.dtype == librosa.util.dtype_r2c(dtype) - - -+@pytest.mark.network - def test_cite_released(): - version = "0.10.1" - doi = "https://doi.org/10.5281/zenodo.8252662" +Index: librosa-0.11.0/tests/test_util.py +=================================================================== +--- librosa-0.11.0.orig/tests/test_util.py ++++ librosa-0.11.0/tests/test_util.py +@@ -1472,6 +1472,7 @@ def test_cite_released(): assert doi == librosa.cite(version=version) @@ -42,9 +41,3 @@ @pytest.mark.xfail(raises=librosa.ParameterError) def test_cite_badversion(): librosa.cite(version="-1.5") - - -+@pytest.mark.network - @pytest.mark.xfail(raises=librosa.ParameterError) - def test_cite_unreleased(): - librosa.cite("0.10.0.dev0") diff --git a/python-librosa.changes b/python-librosa.changes index 4ae25e9..9629ea5 100644 --- a/python-librosa.changes +++ b/python-librosa.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Jan 28 08:09:20 UTC 2026 - Daniel Garcia + +- Update to 0.11.0: + * Bump minimum matplotlib to 3.5.0 by @bmcfee in #1839 + * Fix name collision for norm argument in mfcc by @ssslakter in + #1844 + * Remove .H for conjugate().T by @bmcfee in #1851 + * [documentation][Issue #1855] Update Fast Mellin Transform doc + example by @dhunstack in #1856 + * fix onset documentation specshow samplerate by @BenedictSt in + #1858 + * Updating github issue templates by @bmcfee in #1860 + * Faster abs2 on real inputs by @bmcfee in #1864 + * Revised dtw docstring, fixes #1741 by @bmcfee in #1866 + * Various doc updates 0.11 by @bmcfee in #1878 + * Improved CMND implementation for YIN / pYIN by @dsuedholt in #1882 + * Update effects.py by @scottvr in #1891 + * bump codecov action to v5 by @bmcfee in #1898 + * declare numba requirement before numpy by @dsuedholt in #1897 + * allow skipping linkchecks on ~dpwe by @bmcfee in #1899 + * fixed pooch registry regression from #1829 by @bmcfee in #1900 + * Modernize for 2024/5 by @bmcfee in #1903 + * implemented testing with network isolation by @bmcfee in #1911 + * 0.11.0rc0 release prep by @bmcfee in #1907 + * Deprecate set_fftlib, update fftpack uses by @bmcfee in #1916 + * PR for 0.11.0rc1 by @bmcfee in #1913 + * Get samplerate installing from source on windows for python 3.13 + by @bmcfee in #1919 + * Trying on the new linux-arm64 runners by @bmcfee in #1921 + * 0.11.0 final by @bmcfee in #1922 +- Drop upstreamed patch csr_matrix-attr-H.patch + ------------------------------------------------------------------- Fri Jan 17 15:55:46 UTC 2025 - Bjørn Lie diff --git a/python-librosa.spec b/python-librosa.spec index be39354..76ac08f 100644 --- a/python-librosa.spec +++ b/python-librosa.spec @@ -1,7 +1,7 @@ # # spec file for package python-librosa # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define static_test_data_commit 72bd79e448829187f6336818b3f6bdc2c2ae8f5a Name: python-librosa -Version: 0.10.2.post1 +Version: 0.11.0 Release: 0 Summary: Python module for audio and music processing License: CC-BY-3.0 AND ISC @@ -32,9 +32,6 @@ Source2: librosa-pooch-cache.tar.gz Source3: https://github.com/librosa/librosa-test-data/archive/%{static_test_data_commit}.tar.gz#/librosa-static-test-data-%{version}.tar.gz # Provide information required by upstream Source20: sysinfo.py -# PATCH-FIX-UPSTREAM csr_matrix-attr-H.patch gh#librosa/librosa#1849 mcepl@suse.com -# csr_matrix.H in scipy has been removed -Patch0: csr_matrix-attr-H.patch # PATCH-FIX-UPSTREAM mark-network-tests.patch mcepl@suse.com # to skip test which require network access Patch1: mark-network-tests.patch @@ -46,7 +43,7 @@ BuildRequires: %{python_module joblib >= 0.14} BuildRequires: %{python_module lazy_loader >= 0.1} BuildRequires: %{python_module msgpack >= 1.0} BuildRequires: %{python_module numba >= 0.51.0} -BuildRequires: %{python_module numpy >= 1.22.3 with %python-numpy < 2} +BuildRequires: %{python_module numpy >= 1.22.3} BuildRequires: %{python_module pip} BuildRequires: %{python_module pooch >= 1.0} BuildRequires: %{python_module scikit-learn >= 0.20.0}