- Add sysinfo.py to provide upstream with the required debugging

information.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=50
This commit is contained in:
Matej Cepl 2024-10-04 19:23:30 +00:00 committed by Git OBS Bridge
parent 8502e5631b
commit 22e261fa37
3 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,8 @@ 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.
-------------------------------------------------------------------
Fri Sep 20 22:12:01 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@ -30,6 +30,8 @@ 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 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
@ -101,6 +103,8 @@ sed -i '/addopts/ s/--cov-report.*--cov-report=xml//' setup.cfg
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%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"

14
sysinfo.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/python3
import platform
import sys
import numpy
import scipy
import librosa
print(platform.platform())
print("Python", sys.version)
print("NumPy", numpy.__version__)
print("SciPy", scipy.__version__)
print("librosa", librosa.__version__)
librosa.show_versions()