Hello community, here is the log from the commit of package python-audioread for openSUSE:Factory checked in at 2018-11-15 12:38:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-audioread (Old) and /work/SRC/openSUSE:Factory/.python-audioread.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-audioread" Thu Nov 15 12:38:41 2018 rev:3 rq:646456 version:2.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-audioread/python-audioread.changes 2017-09-29 11:57:16.842775717 +0200 +++ /work/SRC/openSUSE:Factory/.python-audioread.new/python-audioread.changes 2018-11-15 12:38:41.898364638 +0100 @@ -1,0 +2,11 @@ +Sat Nov 3 03:23:46 UTC 2018 - Todd R <toddrme2...@gmail.com> + +- Update to 2.1.6 + * Fix a "no such process" crash in the FFmpeg backend on Windows + Subsystem for Linux (thanks to @llamasoft). + * Avoid suppressing SIGINT in the GStreamer backend on older + versions of PyGObject (thanks to @lazka). +- Recommend dependencies needed for full functionality. +- Include license file + +------------------------------------------------------------------- Old: ---- audioread-2.1.5.tar.gz New: ---- LICENSE audioread-2.1.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-audioread.spec ++++++ --- /var/tmp/diff_new_pack.G9ii0K/_old 2018-11-15 12:38:42.470364029 +0100 +++ /var/tmp/diff_new_pack.G9ii0K/_new 2018-11-15 12:38:42.470364029 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-audioread # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,17 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-audioread -Version: 2.1.5 +Version: 2.1.6 Release: 0 Summary: Wrapper for audio decoding via selectable backends License: MIT Group: Development/Languages/Python Url: https://github.com/sampsyo/audioread -Source: https://files.pythonhosted.org/packages/source/a/audioread/audioread-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/a/audioread/audioread-%{version}.tar.gz +Source10: https://raw.githubusercontent.com/beetbox/audioread/master/LICENSE BuildRequires: %{python_module devel} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +Recommends: ffmpeg +Recommends: python-gobject +Recommends: python-pymad +Recommends: typelib(Gst) = 1.0 %python_subpackages @@ -44,6 +49,7 @@ %prep %setup -q -n audioread-%{version} +cp %{SOURCE10} . %build %python_build @@ -52,8 +58,8 @@ %python_install %files %{python_files} -%defattr(-,root,root,-) %doc README.rst +%license LICENSE %{python_sitelib}/* %changelog ++++++ LICENSE ++++++ Copyright (c) 2011-2018 Adrian Sampson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ++++++ audioread-2.1.5.tar.gz -> audioread-2.1.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audioread-2.1.5/PKG-INFO new/audioread-2.1.6/PKG-INFO --- old/audioread-2.1.5/PKG-INFO 2017-06-10 22:41:46.000000000 +0200 +++ new/audioread-2.1.6/PKG-INFO 2018-05-29 22:34:18.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: audioread -Version: 2.1.5 +Version: 2.1.6 Summary: multi-library, cross-platform audio decoding Home-page: https://github.com/sampsyo/audioread Author: Adrian Sampson @@ -33,7 +33,7 @@ .. _wave: http://docs.python.org/library/wave.html .. _aifc: http://docs.python.org/library/aifc.html .. _sunau: http://docs.python.org/library/sunau.html - .. _PyGObject: https://wiki.gnome.org/Projects/PyGObject + .. _PyGObject: https://pygobject.readthedocs.io/ Use the library like so:: @@ -73,6 +73,12 @@ Version History --------------- + 2.1.6 + Fix a "no such process" crash in the FFmpeg backend on Windows Subsystem for + Linux (thanks to @llamasoft). + Avoid suppressing SIGINT in the GStreamer backend on older versions of + PyGObject (thanks to @lazka). + 2.1.5 Properly clean up the file handle when a backend fails to decode a file. Fix parsing of "N.M" channel counts in the FFmpeg backend (thanks to @piem). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audioread-2.1.5/README.rst new/audioread-2.1.6/README.rst --- old/audioread-2.1.5/README.rst 2017-04-14 04:47:27.000000000 +0200 +++ new/audioread-2.1.6/README.rst 2018-05-20 15:59:19.000000000 +0200 @@ -25,7 +25,7 @@ .. _wave: http://docs.python.org/library/wave.html .. _aifc: http://docs.python.org/library/aifc.html .. _sunau: http://docs.python.org/library/sunau.html -.. _PyGObject: https://wiki.gnome.org/Projects/PyGObject +.. _PyGObject: https://pygobject.readthedocs.io/ Use the library like so:: @@ -65,6 +65,12 @@ Version History --------------- +2.1.6 + Fix a "no such process" crash in the FFmpeg backend on Windows Subsystem for + Linux (thanks to @llamasoft). + Avoid suppressing SIGINT in the GStreamer backend on older versions of + PyGObject (thanks to @lazka). + 2.1.5 Properly clean up the file handle when a backend fails to decode a file. Fix parsing of "N.M" channel counts in the FFmpeg backend (thanks to @piem). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audioread-2.1.5/audioread/ffdec.py new/audioread-2.1.6/audioread/ffdec.py --- old/audioread-2.1.5/audioread/ffdec.py 2017-03-14 13:30:08.000000000 +0100 +++ new/audioread-2.1.6/audioread/ffdec.py 2018-04-07 17:54:08.000000000 +0200 @@ -258,11 +258,18 @@ def close(self): """Close the ffmpeg process used to perform the decoding.""" - # Kill the process if it is still running. - if hasattr(self, 'proc') and self.proc.returncode is None: - self.proc.kill() - self.proc.wait() - self.devnull.close() + if hasattr(self, 'proc'): + # First check the process's execution status before attempting to + # kill it. This fixes an issue on Windows Subsystem for Linux where + # ffmpeg closes normally on its own, but never updates + # `returncode`. + self.proc.poll() + + # Kill the process if it is still running. + if self.proc.returncode is None: + self.proc.kill() + self.proc.wait() + self.devnull.close() def __del__(self): self.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audioread-2.1.5/audioread/gstdec.py new/audioread-2.1.6/audioread/gstdec.py --- old/audioread-2.1.5/audioread/gstdec.py 2016-06-12 21:42:10.000000000 +0200 +++ new/audioread-2.1.6/audioread/gstdec.py 2018-05-20 01:16:42.000000000 +0200 @@ -142,7 +142,7 @@ """ def __init__(self): super(MainLoopThread, self).__init__() - self.loop = GLib.MainLoop() + self.loop = GLib.MainLoop.new(None, False) self.daemon = True def run(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audioread-2.1.5/audioread/version.py new/audioread-2.1.6/audioread/version.py --- old/audioread-2.1.5/audioread/version.py 2017-06-10 22:41:29.000000000 +0200 +++ new/audioread-2.1.6/audioread/version.py 2018-05-29 22:32:38.000000000 +0200 @@ -14,5 +14,5 @@ """Version data for the audioread package.""" -version = '2.1.5' +version = '2.1.6' short_version = '2.1'