forked from pool/python-librosa
Compare commits
13 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c2a85a2e35 | |||
| bd06f7ff1f | |||
| 3d5a0fd786 | |||
| 9a4492d5e7 | |||
| d3f0c8ae60 | |||
| 2cac8b1da2 | |||
| c8e91650ed | |||
| f092bd80a7 | |||
| f0940f91f0 | |||
| d5e8ae22ac | |||
| 22e261fa37 | |||
| 8502e5631b | |||
| c5ec7f4567 |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e25de58fc93497648ec665a900d3f206ad22e1f4579ca2a8a7d6f4dab5572eb8
|
||||
size 2210436
|
||||
3
librosa-0.11.0.tar.gz
Normal file
3
librosa-0.11.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6af22600c52e5b844cf73c699b7c0905ed9fe0b9f17b230eec697bce3368dd15
|
||||
size 2339589
|
||||
43
mark-network-tests.patch
Normal file
43
mark-network-tests.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
setup.cfg | 2 ++
|
||||
tests/test_multichannel.py | 1 +
|
||||
tests/test_util.py | 3 +++
|
||||
3 files changed, 6 insertions(+)
|
||||
|
||||
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.*
|
||||
ignore::DeprecationWarning:resampy.*
|
||||
+markers =
|
||||
+ network: tests requiring network connection
|
||||
|
||||
|
||||
[flake8]
|
||||
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)
|
||||
|
||||
|
||||
+@pytest.mark.network
|
||||
def test_nnls_multi(s_multi):
|
||||
|
||||
# Verify that a stereo melspectrogram can be reconstructed
|
||||
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)
|
||||
|
||||
|
||||
+@pytest.mark.network
|
||||
@pytest.mark.xfail(raises=librosa.ParameterError)
|
||||
def test_cite_badversion():
|
||||
librosa.cite(version="-1.5")
|
||||
@@ -1,3 +1,90 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 28 09:32:05 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add multibuild for tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 28 08:09:20 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- 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 <bjorn.lie@gmail.com>
|
||||
|
||||
- Switch ffmpeg-5 with ffmpeg-4 BuildRequires: python-librosa is
|
||||
the last package depending on ffmepeg-5, and it's only used for
|
||||
testsuite, so using ffmepeg-4 is fine, and will allow us to drop
|
||||
ffmpeg-5 from distro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 2 20:59:35 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Add csr_matrix-attr-H.patch making the package compatible with
|
||||
the most recent version of SciPy (gh#librosa/librosa#1849).
|
||||
- Add sysinfo.py to provide upstream with the required debugging
|
||||
information.
|
||||
- Add mark-network-tests.patch marking tests which require
|
||||
network connection to run.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 22:12:01 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to 0.10.2.post1:
|
||||
- Bump minimum matplotlib to 3.5.0
|
||||
- Update to 0.10.2.post1:
|
||||
- Multiple accidentals by @erabinov in #1739
|
||||
- Avoid deprecated matplotlib functions by @bmcfee in #1755
|
||||
- Mode support by @erabinov in #1756
|
||||
- Mode support by @erabinov in #1762
|
||||
- Switch from pkg_resources to importlib.resources by @mattpitkin in #1765
|
||||
- Add python 3.11 to build matrix by @bmcfee in #1769
|
||||
- Natural accidentals for out-of-key notes by @erabinov in #1770
|
||||
- Fix docstring for the writeable argument of util.frame function by @alvingao in #1780
|
||||
- Update test_util.py to remove problematic "dummy". by @dpwe in #1783
|
||||
- Updates matplotlib colormap usage to remove deprecation warnings. by @psmskelton in #1782
|
||||
- Better handling of warnings in test suite by @bmcfee in #1784
|
||||
- Fix sample rate type annotations by @bmcfee in #1789
|
||||
- Explicitly allow scalars in decibel conversion by @bmcfee in #1790
|
||||
- Adding python 3.12 to build matrix, update tests for recent scipy / numpy by @bmcfee in #1808
|
||||
- Resolve the performance issue of autocorrelate by @alumkal in #1813
|
||||
- Correct phase advance for odd frame lengths in phase_vocoder by @bmcfee in #1814
|
||||
- Multichannel peak, onset, and beat detection by @bmcfee in #1766
|
||||
- Update actions for 2024 by @bmcfee in #1820
|
||||
- doc copybutton, CI updates by @bmcfee in #1821
|
||||
- exposed tempo min and max parameters in specshow by @bmcfee in #1822
|
||||
- remove kwargs from effects.hpss and friends, passthru stft by @bmcfee in #1826
|
||||
- Docstring and comment improvements by @bmcfee in #1827
|
||||
- librosa.cite() by @bmcfee in #1829
|
||||
- 0.10.2 release prep by @bmcfee in #1832
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 03:42:24 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -16,9 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == ""
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%else
|
||||
%bcond_without test
|
||||
%define psuffix -%{flavor}
|
||||
%endif
|
||||
|
||||
%define static_test_data_commit 72bd79e448829187f6336818b3f6bdc2c2ae8f5a
|
||||
Name: python-librosa
|
||||
Version: 0.10.1
|
||||
Name: python-librosa%{psuffix}
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
Summary: Python module for audio and music processing
|
||||
License: CC-BY-3.0 AND ISC
|
||||
@@ -30,6 +39,11 @@ Source1: librosa-create-pooch-cache.py
|
||||
Source2: librosa-pooch-cache.tar.gz
|
||||
# Static test data
|
||||
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 mark-network-tests.patch mcepl@suse.com
|
||||
# to skip test which require network access
|
||||
Patch1: mark-network-tests.patch
|
||||
BuildRequires: %{python_module SoundFile >= 0.12.1}
|
||||
BuildRequires: %{python_module audioread >= 2.1.9}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
@@ -63,16 +77,19 @@ Requires: python-scipy >= 1.2.0
|
||||
Requires: python-soxr >= 0.3.2
|
||||
Requires: python-typing_extensions >= 4.1.1
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module matplotlib >= 3.3.0}
|
||||
BuildRequires: %{python_module librosa = %{version}}
|
||||
BuildRequires: %{python_module packaging >= 20.0}
|
||||
BuildRequires: %{python_module pytest-mpl}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module resampy >= 0.2.2}
|
||||
BuildRequires: %{python_module samplerate}
|
||||
BuildRequires: ffmpeg-5
|
||||
BuildRequires: ffmpeg-4
|
||||
# /SECTION
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -91,13 +108,20 @@ find librosa -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
|
||||
sed -i '/addopts/ s/--cov-report.*--cov-report=xml//' setup.cfg
|
||||
|
||||
%build
|
||||
%if !%{with test}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python %{SOURCE20}
|
||||
|
||||
export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache
|
||||
# image files do not match without exact mpl version
|
||||
donttest="test_display"
|
||||
@@ -142,13 +166,23 @@ notparallel+=" or test_remix"
|
||||
notparallel+=" or test_chroma"
|
||||
notparallel+=" or test_estimate_tuning"
|
||||
notparallel+=" or test_zero_crossings"
|
||||
%pytest -k "not (${donttest} or ${notparallel})" -n auto
|
||||
%pytest -k "not (${donttest}) and (${notparallel})"
|
||||
# gh#librosa/librosa#1879
|
||||
donttest+=" or test_beat"
|
||||
# gh#librosa/librosa#1880
|
||||
donttest+=" or test_nnls_multiblock"
|
||||
#
|
||||
donttest+=" or test_subsegment_badn"
|
||||
%pytest -k "not (${donttest} or ${notparallel} or network)" -n auto
|
||||
%pytest -k "not (${donttest} or network) and (${notparallel})"
|
||||
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.md README.md
|
||||
%license LICENSE.md
|
||||
%{python_sitelib}/librosa
|
||||
%{python_sitelib}/librosa-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
18
sysinfo.py
Normal file
18
sysinfo.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import platform
|
||||
import sys
|
||||
import numpy
|
||||
import scipy
|
||||
try:
|
||||
import librosa
|
||||
except ModuleNotFoundError:
|
||||
librosa = None
|
||||
|
||||
print(platform.platform())
|
||||
print("Python", sys.version)
|
||||
print("NumPy", numpy.__version__)
|
||||
print("SciPy", scipy.__version__)
|
||||
if librosa is not None:
|
||||
print("librosa", librosa.__version__)
|
||||
librosa.show_versions()
|
||||
Reference in New Issue
Block a user