From f3c20a401b66c4f8f48a7462d6480663345f97c3bf3e598ffeb57f5a77473501 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 19 Feb 2021 23:03:32 +0000 Subject: [PATCH] Accepting request 873862 from home:bnavigator:branches:devel:languages:python - Don't install and test optional numpy on python36 flavor, because NumPy 1.20 on Tumbleweed does not support Python 3.6 anymore (NEP 29) OBS-URL: https://build.opensuse.org/request/show/873862 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundFile?expand=0&rev=16 --- python-SoundFile.changes | 7 +++++++ python-SoundFile.spec | 11 ++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-SoundFile.changes b/python-SoundFile.changes index dbcad00..afd6024 100644 --- a/python-SoundFile.changes +++ b/python-SoundFile.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Feb 19 17:24:38 UTC 2021 - Ben Greiner + +- Don't install and test optional numpy on python36 flavor, + because NumPy 1.20 on Tumbleweed does not support Python 3.6 + anymore (NEP 29) + ------------------------------------------------------------------- Wed Mar 4 11:07:43 UTC 2020 - Tomáš Chvátal diff --git a/python-SoundFile.spec b/python-SoundFile.spec index 2f9ed66..bf70973 100644 --- a/python-SoundFile.spec +++ b/python-SoundFile.spec @@ -1,7 +1,7 @@ # # spec file for package python-SoundFile # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,22 +17,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %define oldpython python Name: python-SoundFile Version: 0.10.3.post1 Release: 0 Summary: An audio library based on libsndfile, CFFI and NumPy License: BSD-3-Clause -URL: https://github.com/bastibe/PySoundFile +URL: https://github.com/bastibe/python-soundfile Source: https://files.pythonhosted.org/packages/source/S/SoundFile/SoundFile-%{version}.tar.gz BuildRequires: %{python_module cffi >= 0.6} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: libsndfile1 BuildRequires: python-rpm-macros +BuildRequires: %{python_module numpy if (%python-base without python36-base)} Requires: libsndfile1 Requires: python-cffi >= 0.6 Recommends: python-numpy @@ -64,7 +63,9 @@ represents audio data as NumPy arrays. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -k 'not read_int_data_from_float_file' +# don't test if we don't have optional numpy installed +python36_ignore="--ignore tests/test_pysoundfile.py" +%pytest -k 'not read_int_data_from_float_file' ${$python_ignore} %files %{python_files} %doc README.rst