python-librosa/python-librosa.spec

125 lines
4.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-librosa
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-librosa
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
Version: 0.9.2
Release: 0
Summary: Python module for audio and music processing
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
License: CC-BY-3.0 AND ISC
URL: https://github.com/librosa/librosa
# The github archive has the tests
Source0: https://github.com/librosa/librosa/archive/%{version}.tar.gz#/librosa-%{version}.tar.gz
Source1: librosa-create-pooch-cache.py
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
# Pooch test data. Use librosa-create-pooch-cache.py to create this file
Source2: librosa-pooch-cache.tar.gz
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
# PATCH-FIX-UPSTREAM gh#librosa/librosa#1551
Patch0: remove-contextlib2.patch
# PATCH-FIX-OPENSUSE Skip tests that require further test data that is ~180MiB
Patch1: skip-test-data-missing-tests.patch
# PATCH-FIX-UPSTREAM update-tests-for-numpy-123.patch gh#librosa/librosa#1581
Patch2: update-tests-for-numpy-123.patch
# PATCH-FIX-UPSTREAM remove-hanning-from-tests.patch gh#librosa/librosa#1548
Patch3: remove-hanning-from-tests.patch
# PATCH-FIX-UPSTREAM update-for-numpy-124.patch, parts from gh#librosa/librosa#1587, gh#librosa/librosa#1632
Patch4: update-for-numpy-124.patch
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
BuildRequires: %{python_module SoundFile >= 0.10.2}
BuildRequires: %{python_module audioread >= 2.1.9}
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module decorator >= 4.0.10}
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
BuildRequires: %{python_module joblib >= 0.14}
BuildRequires: %{python_module numba >= 0.45.1}
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
BuildRequires: %{python_module numpy >= 1.17.0}
BuildRequires: %{python_module packaging >= 20.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pooch >= 1.0}
BuildRequires: %{python_module resampy >= 0.2.2}
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
BuildRequires: %{python_module scikit-learn >= 0.19.1}
BuildRequires: %{python_module scipy >= 1.2.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
Requires: python-SoundFile >= 0.10.2
Requires: python-audioread >= 2.1.9
Requires: python-decorator >= 4.0.10
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
Requires: python-joblib >= 0.14
Requires: python-numba >= 0.45.1
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
Requires: python-numpy >= 1.17.0
Requires: python-packaging >= 20.0
Requires: python-pooch >= 1.0
Requires: python-resampy >= 0.2.2
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
Requires: python-scikit-learn >= 0.19.1
Requires: python-scipy >= 1.2.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module matplotlib >= 3.3.0}
BuildRequires: %{python_module pytest-mpl}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module samplerate}
BuildRequires: ffmpeg
# /SECTION
%python_subpackages
%description
LibROSA is a python package for music and audio analysis. It provides
the building blocks necessary to create music information retrieval
systems.
%prep
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
%autosetup -p1 -n librosa-%{version} -a 2
# Remove unneeded shebangs
find librosa -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
# don't measure test coverage
sed -i '/addopts/ s/--cov-report.*--cov-report=xml//' setup.cfg
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache
# test data files not packaged
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
donttest+=" or (test_core and test_iirt) or test_find_files"
donttest+=" or (test_features and test_cens)"
donttest+=" or (test_filters and test_semitone_filterbank)"
# image files do not match without exact mpl version
donttest+=" or test_display"
- Update to 0.9.2: * Fixed librosa.show_versions to match package dependencies. * Fixed a bug in librosa.effects.split when applied to multichannel data. * Removed test data from main repository and reduced the git attic. * Accept pre-constructed audioread objects in librosa.load. * Accelerate librosa.magphase. * Nearly full support for multi-channel processing. * Option to disable unicode characters in display functions. * Significantly expanded the library of example audio clips. * The default padding mode for most functions (including STFT) is now zero-padding. * librosa.load and librosa.stream can now operate directly on open soundfile objects. * librosa.display.specshow now uses centered coordinate grids. * librosa.iirt now exposes API control over resampling modes. * Maximum frequency is now correctly inferred as Nyquist in onset strength calculation. * librosa.effects.deemphasis no longer modifies the input signal in-place. * librosa.util.frame now correctly works for arbitrary memory layouts and numbers of axes. * Corrected a normalization error in inverse CQT. * ibrosa.cqt now supports arbitrary hop lengths. * Added a run-time check for minimally supported matplotlib versions. * Enhanced continuous integration testing for oldest and newest environments. * librosa.effects.deemphasis, inverse operation of librosa.effects.preemphasis. * librosa.display.waveshow, adaptively visualize waveforms by amplitude envelope when zoomed out, or raw sample values when zoomed in. - Add patch remove-contextlib2.patch: * No longer require contextlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=20
2022-09-20 08:04:27 +02:00
# soxr not in Tumbleweed
donttest+=" or soxr"
# fails with current Tumbleweed
donttest+=" or test_pyin_multi_center"
# Overflow on i586
if [ $(getconf LONG_BIT) -eq 32 ]; then
donttest+=" or test_tempo or test_hybrid_cqt or test_stft_winsizes"
donttest+=" or test_istft_reconstruction or test_trim"
donttest+=" or test_nnls_multiblock"
fi
%pytest -k "not (${donttest:4})" -n auto
Accepting request 718644 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to version 0.7.0 + New features * `librosa.core.stream`: Stream generator to process long audio files into smaller pieces. *Brian McFee* * `librosa.core.load`: Replaced the default audio decoder with `pysoundfile`, and only use `audioread` as backup. *Brian McFee* * `librosa.core.griffinlim`: Phase retrieval from magnitude spectrograms using the (accelerated) Griffin-Lim method. *Brian McFee* * `librosa.feature.inverse`: New module for feature inversion, based on the Griffin-Lim phase retrieval algorithm. Includes `mel_to_audio` and `mfcc_to_audio`. *Brian McFee* * `librosa.core.lpc`: Linear prediction coefficients (LPC). *Adam Weiss* * `librosa.sequence.rqa`: Recurrence Quantification Analysis (RQA) for sequence alignment. *Brian McFee* * `librosa.beat.plp`: Predominant local pulse (PLP) for variable-tempo beat tracking. *Brian McFee* * `librosa.feature.fourier_tempogram`: Fourier Tempogram for representing rhythm in the frequency domain. *Brian McFee* * `librosa.core.pcen` Per-channel energy normalization (PCEN) now allows logarithmic range compression at the limit power->0. *Vincent Lostanlen* * `librosa.effects.pitch_shift` supports custom resampling modes. *Taewoon Kim* * `librosa.core.cqt` and `librosa.core.icqt` Forward and inverse constant-Q transform now support custom resampling modes. *Brian McFee* * `librosa.segment.path_enhance`: Near-diagonal path enhancement for recurrence, self- or cross-similarity matrices. *Brian McFee* * `librosa.segment.recurrence_matrix` now supports a keyword argument, `self=False`. If set to `True`, the recurrence matrix includes self-loops. *Brian McFee* * `librosa.core.piptrack` now supports a keyword argument, `ref=None`, allowing users to override the reference thresholding behavior for determining which bins correspond to pitches. *Brian McFee* * `librosa.segment.cross_similarity`: Cross-similarity function for comparing two feature sequences. *Rachel Bittner, Brian McFee* * `librosa.onset.onset_strength_multi` now supports a user-specified reference spectrum via the `ref` keyword argument. *Brian McFee* * `librosa.core.resample` now supports `mode='polyphase'`. *Brian McFee* * `librosa.onset.onset_strength_multi`: Setting `aggregate=False` disables the aggregation of onset strengths across frequency bins. *Brian McFee* + Bug fixes * `librosa.effects.pitch_shift` now preserves length. *Vincent Lostanlen* * `librosa.core.pcen` Dynamic range compression in PCEN is more numerically stable for small values of the exponent. *Vincent Lostanlen* * `librosa.core.ifgram` Instantaneous frequency spectrogram now correctly estimates center frequencies when using windows other than `hann`. *Brian McFee* * `librosa.sequence.dtw` Fixed a bug in dynamic time warping when `subseq=True`. *Viktor Andreevitch Morozov* * `librosa.core.pcen` now initializes its autoregressive filtering in the steady state, not with silence. *Jan Schlüter, Brian McFee* * `librosa.segment.recurrence_matrix`: `width` parameter now cannot exceed data length. *Brian McFee* * Filter bank constructors `mel`, `chroma`, `constant_q`, and `cq_to_chroma` are now type-stable. *Vincent Lostanlen, Brian McFee* * `librosa.core.icqt` Inverse constant-Q transform has been completely rewritten and is more numerically stable. *Brian McFee* + Removed features (deprecated in v0.6) * Discrete cosine transform. We recommend using `scipy.fftpack.dct` * The `delta` function no longer support the `trim` keyword argument. * Root mean square error (`rmse`) has been renamed to `rms`. * `iirt` now uses `sos` mode by default. + Documentation * Improved the documentation of PCEN. *Vincent Lostanlen* * Improved installation documentation. *Darío Hereñú* * Improved code style for plot generation. *Alex Metsai* * Improved the documentation of spectral features. *Brian McFee* * Improved the documentation of MFCC. *Brian McFee* * Removed a redundant link in the `util` documentation. *Keunwoo Choi* * Improved the docstring of `recurrence_matrix`. *Brian McFee* * Improved the docstring of `load`. *Andy Sarroff* + Other changes * The `output` module is now deprecated, and will be removed in version 0.8. * More informative exception handling. *Jack Mason* * `librosa.core.resample()` now supports `mode='fft'`, equivalent to the previous `scipy` mode. *Brian McFee* * More efficient length-aware ISTFT and ICQT. *Vincent Lostanlen* * Nine librosa functions now store jit-compiled, numba-accelerated caches across sessions. *Brian McFee* * `librosa.core.load` no longer relies on `realpath()`. *Brian McFee* * All spectral feature extractors now expose all STFT parameters. *Brian McFee* * Refactored `librosa.cache`. *Brian McFee* * Thanks to `np.fft.rfft`, functions `stft`, `istft`, `ifgram`, and `fmt` are faster and have a reduced memory footprint. *Brian McFee* OBS-URL: https://build.opensuse.org/request/show/718644 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=7
2019-07-25 22:35:34 +02:00
%files %{python_files}
Accepting request 718644 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to version 0.7.0 + New features * `librosa.core.stream`: Stream generator to process long audio files into smaller pieces. *Brian McFee* * `librosa.core.load`: Replaced the default audio decoder with `pysoundfile`, and only use `audioread` as backup. *Brian McFee* * `librosa.core.griffinlim`: Phase retrieval from magnitude spectrograms using the (accelerated) Griffin-Lim method. *Brian McFee* * `librosa.feature.inverse`: New module for feature inversion, based on the Griffin-Lim phase retrieval algorithm. Includes `mel_to_audio` and `mfcc_to_audio`. *Brian McFee* * `librosa.core.lpc`: Linear prediction coefficients (LPC). *Adam Weiss* * `librosa.sequence.rqa`: Recurrence Quantification Analysis (RQA) for sequence alignment. *Brian McFee* * `librosa.beat.plp`: Predominant local pulse (PLP) for variable-tempo beat tracking. *Brian McFee* * `librosa.feature.fourier_tempogram`: Fourier Tempogram for representing rhythm in the frequency domain. *Brian McFee* * `librosa.core.pcen` Per-channel energy normalization (PCEN) now allows logarithmic range compression at the limit power->0. *Vincent Lostanlen* * `librosa.effects.pitch_shift` supports custom resampling modes. *Taewoon Kim* * `librosa.core.cqt` and `librosa.core.icqt` Forward and inverse constant-Q transform now support custom resampling modes. *Brian McFee* * `librosa.segment.path_enhance`: Near-diagonal path enhancement for recurrence, self- or cross-similarity matrices. *Brian McFee* * `librosa.segment.recurrence_matrix` now supports a keyword argument, `self=False`. If set to `True`, the recurrence matrix includes self-loops. *Brian McFee* * `librosa.core.piptrack` now supports a keyword argument, `ref=None`, allowing users to override the reference thresholding behavior for determining which bins correspond to pitches. *Brian McFee* * `librosa.segment.cross_similarity`: Cross-similarity function for comparing two feature sequences. *Rachel Bittner, Brian McFee* * `librosa.onset.onset_strength_multi` now supports a user-specified reference spectrum via the `ref` keyword argument. *Brian McFee* * `librosa.core.resample` now supports `mode='polyphase'`. *Brian McFee* * `librosa.onset.onset_strength_multi`: Setting `aggregate=False` disables the aggregation of onset strengths across frequency bins. *Brian McFee* + Bug fixes * `librosa.effects.pitch_shift` now preserves length. *Vincent Lostanlen* * `librosa.core.pcen` Dynamic range compression in PCEN is more numerically stable for small values of the exponent. *Vincent Lostanlen* * `librosa.core.ifgram` Instantaneous frequency spectrogram now correctly estimates center frequencies when using windows other than `hann`. *Brian McFee* * `librosa.sequence.dtw` Fixed a bug in dynamic time warping when `subseq=True`. *Viktor Andreevitch Morozov* * `librosa.core.pcen` now initializes its autoregressive filtering in the steady state, not with silence. *Jan Schlüter, Brian McFee* * `librosa.segment.recurrence_matrix`: `width` parameter now cannot exceed data length. *Brian McFee* * Filter bank constructors `mel`, `chroma`, `constant_q`, and `cq_to_chroma` are now type-stable. *Vincent Lostanlen, Brian McFee* * `librosa.core.icqt` Inverse constant-Q transform has been completely rewritten and is more numerically stable. *Brian McFee* + Removed features (deprecated in v0.6) * Discrete cosine transform. We recommend using `scipy.fftpack.dct` * The `delta` function no longer support the `trim` keyword argument. * Root mean square error (`rmse`) has been renamed to `rms`. * `iirt` now uses `sos` mode by default. + Documentation * Improved the documentation of PCEN. *Vincent Lostanlen* * Improved installation documentation. *Darío Hereñú* * Improved code style for plot generation. *Alex Metsai* * Improved the documentation of spectral features. *Brian McFee* * Improved the documentation of MFCC. *Brian McFee* * Removed a redundant link in the `util` documentation. *Keunwoo Choi* * Improved the docstring of `recurrence_matrix`. *Brian McFee* * Improved the docstring of `load`. *Andy Sarroff* + Other changes * The `output` module is now deprecated, and will be removed in version 0.8. * More informative exception handling. *Jack Mason* * `librosa.core.resample()` now supports `mode='fft'`, equivalent to the previous `scipy` mode. *Brian McFee* * More efficient length-aware ISTFT and ICQT. *Vincent Lostanlen* * Nine librosa functions now store jit-compiled, numba-accelerated caches across sessions. *Brian McFee* * `librosa.core.load` no longer relies on `realpath()`. *Brian McFee* * All spectral feature extractors now expose all STFT parameters. *Brian McFee* * Refactored `librosa.cache`. *Brian McFee* * Thanks to `np.fft.rfft`, functions `stft`, `istft`, `ifgram`, and `fmt` are faster and have a reduced memory footprint. *Brian McFee* OBS-URL: https://build.opensuse.org/request/show/718644 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=7
2019-07-25 22:35:34 +02:00
%doc AUTHORS.md README.md
%license LICENSE.md
%{python_sitelib}/librosa
%{python_sitelib}/librosa-%{version}.dist-info
%changelog