Hello community,
here is the log from the commit of package python-pysndfile for
openSUSE:Factory checked in at 2020-07-05 01:17:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pysndfile (Old)
and /work/SRC/openSUSE:Factory/.python-pysndfile.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pysndfile"
Sun Jul 5 01:17:51 2020 rev:5 rq:818481 version:1.4.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pysndfile/python-pysndfile.changes
2019-03-10 09:34:23.464190384 +0100
+++
/work/SRC/openSUSE:Factory/.python-pysndfile.new.3060/python-pysndfile.changes
2020-07-05 01:18:42.905098497 +0200
@@ -1,0 +2,57 @@
+Fri Jul 3 06:51:07 UTC 2020 - Steve Kowalik <[email protected]>
+
+- Update to 1.4.3:
+ * changed sndio functions to all use PySndfile as context manager. This
fixes the problem that the sndfile
+ remains open when an error occurs which may in turn lead to
inconsistencies if the sndfile is tried to be rewritten
+ in an exception handler.
+ * fixed PySndfile.read_frames method to properly handle reading frames in
parts (previous fix was incomplete)
+ * extended supported commands to change compression level when writing flac
and ogg files
+ * fixed PySndfile.read_frames and sndio.read method to properly handle
reading frames from the middle of a file
+ * Extended PySndfile class:
+ * support use as context manager
+ * added support for wve, ogg, MPC2000 sampler and RF64 wav files
+ * added support for forcing to return 2D arrays even for mono files
+ * added method to close the file and release all resources.
+ * support reading more frames than present in the file using the
fill_value for all values positioned after the end of the file
+ * (no changes in functionality)
+ * added documentation to distributed files
+ * added missing licence file to distribution
+ * thanks @toddrme2178 for patches.
+ * removed cython (a build requirement) from requirements.txt
+ * avoid cython warning and fix language_level in the .pyx source code
+ * add and support pre-release tags in the version number
+ * use hashlib to calculate the README checksum.
+ * fixed support for use with python 2.7 that was broken since 1.3.4
+ * fixed potential but undesired build dependency of pandoc
+ * added link to explanation for using pysndfile under windows
+ * fixed pandoc problem that does produce non ASCII chars in rst output.
+ * fixed two copy paste bug introduced in 1.3.4
+ 1.3.4 did in fact not work at all :-(
+ * added a check target to the makefile that performs a complete
built/install/test cycle
+ to avoid problems as in 1.3.4
+ * added support for automatic installation of requirements
+ * remove precompiled cython source file and rely on pip requirements to
provide cython
+ so that cython compilation will always be possible.
+ * added experimental support for installation on win32 (thanks
+ to Svein Seldal for the contributions).
+ * use expanduser for replacing ~ in filenames
+ * adapted cython source code to avoid all compiler warnings due to
deprecated numpy api
+ * removed use of ez_setup.py that is no longer required.
+ * fixed missing command C\_SFC\_SET\_SCALE\_INT\_FLOAT\_WRITE (thanks
+ to Svein Seldal for the bug report and fix)
+ * better documentation of sf\_string-io in sndio.read and sndio.write
+ * limit size of strings to be written such that the written file can
+ always be read back with libsndfile 1.0.28 (which imposes different
+ constraints for different formats)
+ * better error handling when number of channels exceeds channel limit
+ imposed by libsndfile.
+ * sndio module now exposes the dicts: fileformat\_name\_to\_id
+ and fileformat\_id\_to\_name
+ * extended sndio.read with force_2d argument that can be used to
+ force the returned data array to always have 2 dimensions even for
+ mono files.
+- Drop extra source files of COPYING.txt and COPYING.LESSER.txt, it is now
+ included.
+- Add patch fix-test-imports.patch to fix the test suite.
+
+-------------------------------------------------------------------
Old:
----
COPYING.LESSER.txt
COPYING.txt
pysndfile-1.3.2.tar.gz
New:
----
fix-test-imports.patch
pysndfile-1.4.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pysndfile.spec ++++++
--- /var/tmp/diff_new_pack.lm1X42/_old 2020-07-05 01:18:44.501103583 +0200
+++ /var/tmp/diff_new_pack.lm1X42/_new 2020-07-05 01:18:44.501103583 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pysndfile
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pysndfile
-Version: 1.3.2
+Version: 1.4.3
Release: 0
Summary: Cython wrapper class for reading/writing soundfiles
License: LGPL-3.0-only
Group: Development/Languages/Python
URL: https://forge-2.ircam.fr/roebel/pysndfile
Source:
https://files.pythonhosted.org/packages/source/p/pysndfile/pysndfile-%{version}.tar.gz
-Source10:
https://forge-2.ircam.fr/roebel/pysndfile/raw/master/COPYING.txt
-Source11:
https://forge-2.ircam.fr/roebel/pysndfile/raw/master/COPYING.LESSER.txt
+Patch0: fix-test-imports.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
@@ -59,8 +58,7 @@
%prep
%setup -q -n pysndfile-%{version}
-cp %{SOURCE10} .
-cp %{SOURCE11} .
+%autopatch -p1
%build
export CFLAGS="%{optflags}"
@@ -77,7 +75,7 @@
%files %{python_files}
%doc ChangeLog README.md
-%license COPYING.txt COPYING.LESSER.txt
+%license COPYING.LESSER.txt
%{python_sitearch}/*
%changelog
++++++ fix-test-imports.patch ++++++
Index: pysndfile-1.4.3/tests/pysndfile_test.py
===================================================================
--- pysndfile-1.4.3.orig/tests/pysndfile_test.py
+++ pysndfile-1.4.3/tests/pysndfile_test.py
@@ -3,10 +3,7 @@ import os
import sys
import numpy as np
-from pysndfile_inst_dir.pysndfile import get_sndfile_version
-from pysndfile_inst_dir.pysndfile import *
-import pysndfile_inst_dir.pysndfile as pysndfile
-
+from pysndfile import *
mydir = os.path.dirname(__file__)
@@ -73,9 +70,9 @@ else:
print("no errors detected for io with different sample encodings")
# check reading part of file
-ss,_,_ = pysndfile.sndio.read(os.path.join(mydir,'test.wav'), force_2d=True)
-ssstart,_,_ = pysndfile.sndio.read(os.path.join(mydir,'test.wav'), end=100,
force_2d=True)
-ssend,_,_ = pysndfile.sndio.read(os.path.join(mydir,'test.wav'), start=100,
force_2d=True)
+ss,_,_ = sndio.read(os.path.join(mydir,'test.wav'), force_2d=True)
+ssstart,_,_ = sndio.read(os.path.join(mydir,'test.wav'), end=100,
force_2d=True)
+ssend,_,_ = sndio.read(os.path.join(mydir,'test.wav'), start=100,
force_2d=True)
if np.any(ss != np.concatenate((ssstart, ssend), axis=0)):
read_error = True
@@ -92,13 +89,13 @@ if np.any(ss != np.concatenate((wwstart,
# check writing flac
if "flac" in majors:
print('test writing flac')
- ss, sr, enc = pysndfile.sndio.read(os.path.join(mydir,'test.wav'),
force_2d=True)
+ ss, sr, enc = sndio.read(os.path.join(mydir,'test.wav'), force_2d=True)
flac_file = PySndfile(os.path.join(mydir,'test.flac'), "w",
construct_format("flac", "pcm16"), ss.shape[1], sr)
flac_file.command("SFC_SET_COMPRESSION_LEVEL", 1.)
flac_file.write_frames(ss)
flac_file.close()
- ss_flac, sr_flac, enc_flac =
pysndfile.sndio.read(os.path.join(mydir,'test.flac'), force_2d=True)
+ ss_flac, sr_flac, enc_flac = sndio.read(os.path.join(mydir,'test.flac'),
force_2d=True)
if sr != sr_flac:
print('error::flac writing sample rate')
write_error = True
++++++ pysndfile-1.3.2.tar.gz -> pysndfile-1.4.3.tar.gz ++++++
++++ 46265 lines of diff (skipped)