forked from pool/python-SoundFile
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
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 19 17:24:38 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user