Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sounddevice for 
openSUSE:Factory checked in at 2024-01-03 12:24:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sounddevice (Old)
 and      /work/SRC/openSUSE:Factory/.python-sounddevice.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sounddevice"

Wed Jan  3 12:24:16 2024 rev:12 rq:1136463 version:0.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sounddevice/python-sounddevice.changes    
2022-10-08 01:26:34.274414915 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sounddevice.new.28375/python-sounddevice.changes
 2024-01-03 12:24:21.606100744 +0100
@@ -1,0 +2,6 @@
+Fri Dec 29 09:41:04 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.4.6:
+  * Redirect stderr with os.dup2() instead of CFFI calls
+
+-------------------------------------------------------------------

Old:
----
  sounddevice-0.4.5.tar.gz

New:
----
  sounddevice-0.4.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sounddevice.spec ++++++
--- /var/tmp/diff_new_pack.Itz9Qp/_old  2024-01-03 12:24:22.378128951 +0100
+++ /var/tmp/diff_new_pack.Itz9Qp/_new  2024-01-03 12:24:22.378128951 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sounddevice
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,9 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
+%{?sle15_python_module_pythons}
 Name:           python-sounddevice
-Version:        0.4.5
+Version:        0.4.6
 Release:        0
 Summary:        Module to play and record sound with Python
 License:        MIT
@@ -28,7 +26,9 @@
 Source:         
https://files.pythonhosted.org/packages/source/s/sounddevice/sounddevice-%{version}.tar.gz
 BuildRequires:  %{python_module cffi >= 1.0}
 BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  portaudio
 BuildRequires:  python-rpm-macros
@@ -47,16 +47,19 @@
 
 %build
 chmod 644 examples/*
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %doc NEWS.rst README.rst examples
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/{_sounddevice.py,sounddevice.py}
+%pycache_only %{python_sitelib}/__pycache__/{sounddevice,_sounddevice}*
+
+%{python_sitelib}/sounddevice-%{version}.dist-info
 
 %check
 # no upstream tests, examples needs devices

++++++ sounddevice-0.4.5.tar.gz -> sounddevice-0.4.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/LICENSE 
new/sounddevice-0.4.6/LICENSE
--- old/sounddevice-0.4.5/LICENSE       2022-08-21 17:22:18.000000000 +0200
+++ new/sounddevice-0.4.6/LICENSE       2023-02-19 12:38:35.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright (c) 2015-2022 Matthias Geier
+Copyright (c) 2015-2023 Matthias Geier
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/NEWS.rst 
new/sounddevice-0.4.6/NEWS.rst
--- old/sounddevice-0.4.5/NEWS.rst      2022-08-21 17:24:03.000000000 +0200
+++ new/sounddevice-0.4.6/NEWS.rst      2023-02-19 12:38:54.000000000 +0100
@@ -1,3 +1,6 @@
+0.4.6 (2023-02-19):
+ * Redirect stderr with os.dup2() instead of CFFI calls
+
 0.4.5 (2022-08-21):
  * Add ``index`` field to device dict
  * Require Python >= 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/PKG-INFO 
new/sounddevice-0.4.6/PKG-INFO
--- old/sounddevice-0.4.5/PKG-INFO      2022-08-21 17:36:27.595208600 +0200
+++ new/sounddevice-0.4.6/PKG-INFO      2023-02-19 12:44:24.703644000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: sounddevice
-Version: 0.4.5
+Version: 0.4.6
 Summary: Play and Record Sound with Python
 Home-page: http://python-sounddevice.readthedocs.io/
 Author: Matthias Geier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/sounddevice.egg-info/PKG-INFO 
new/sounddevice-0.4.6/sounddevice.egg-info/PKG-INFO
--- old/sounddevice-0.4.5/sounddevice.egg-info/PKG-INFO 2022-08-21 
17:36:27.000000000 +0200
+++ new/sounddevice-0.4.6/sounddevice.egg-info/PKG-INFO 2023-02-19 
12:44:24.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: sounddevice
-Version: 0.4.5
+Version: 0.4.6
 Summary: Play and Record Sound with Python
 Home-page: http://python-sounddevice.readthedocs.io/
 Author: Matthias Geier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/sounddevice.py 
new/sounddevice-0.4.6/sounddevice.py
--- old/sounddevice-0.4.5/sounddevice.py        2022-08-21 17:21:44.000000000 
+0200
+++ new/sounddevice-0.4.6/sounddevice.py        2023-02-19 12:38:38.000000000 
+0100
@@ -1,4 +1,4 @@
-# Copyright (c) 2015-2021 Matthias Geier
+# Copyright (c) 2015-2023 Matthias Geier
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -48,7 +48,7 @@
     https://python-sounddevice.readthedocs.io/
 
 """
-__version__ = '0.4.5'
+__version__ = '0.4.6'
 
 import atexit as _atexit
 import os as _os
@@ -2825,27 +2825,20 @@
     """
     old_stderr = None
     try:
-        stdio = _ffi.dlopen(None)
+        old_stderr = _os.dup(2)
+        devnull = _os.open(_os.devnull, _os.O_WRONLY)
+        _os.dup2(devnull, 2)
+        _os.close(devnull)
     except OSError:
         pass
-    else:
-        for stderr_name in 'stderr', '__stderrp':
-            try:
-                old_stderr = getattr(stdio, stderr_name)
-            except _ffi.error:
-                continue
-            else:
-                devnull = stdio.fopen(_os.devnull.encode(), b'w')
-                setattr(stdio, stderr_name, devnull)
-                break
     try:
         _check(_lib.Pa_Initialize(), 'Error initializing PortAudio')
         global _initialized
         _initialized += 1
     finally:
         if old_stderr is not None:
-            setattr(stdio, stderr_name, old_stderr)
-            stdio.fclose(devnull)
+            _os.dup2(old_stderr, 2)
+            _os.close(old_stderr)
 
 
 def _terminate():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sounddevice-0.4.5/sounddevice_build.py 
new/sounddevice-0.4.6/sounddevice_build.py
--- old/sounddevice-0.4.5/sounddevice_build.py  2022-03-03 20:40:29.000000000 
+0100
+++ new/sounddevice-0.4.6/sounddevice_build.py  2023-01-25 11:29:46.000000000 
+0100
@@ -311,13 +311,5 @@
 int PaWasapi_IsLoopback( PaDeviceIndex device );
 """)
 
-ffibuilder.cdef("""
-    /* from stdio.h */
-    FILE* fopen(const char* path, const char* mode);
-    int fclose(FILE* fp);
-    extern FILE* stderr;  /* GNU C library */
-    extern FILE* __stderrp;  /* macOS */
-""")
-
 if __name__ == '__main__':
     ffibuilder.compile(verbose=True)

Reply via email to