Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PyOgg for openSUSE:Factory 
checked in at 2022-08-30 14:49:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyOgg (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyOgg.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyOgg"

Tue Aug 30 14:49:01 2022 rev:8 rq:999910 version:0.6.14a1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyOgg/python-PyOgg.changes        
2020-01-22 22:44:36.208525253 +0100
+++ /work/SRC/openSUSE:Factory/.python-PyOgg.new.2083/python-PyOgg.changes      
2022-08-30 14:49:30.440124608 +0200
@@ -1,0 +2,15 @@
+Sun Aug 28 23:07:11 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- update to 0.6.14a1 
+  * Fixed ope_encoder_write (#27 )
+
+  * Contributions by @mattgwwalker :
+  - Added opus_get_version_string() (#23)
+  - Added opus_strerror() (#24)
+  - Example for opusfile (#25)
+  - Opusfile as array (#26)
+
+- update to 0.6.13a1 
+  * Fixed vorbis_block ( #22 )
+
+-------------------------------------------------------------------

Old:
----
  PyOgg-0.6.12a1.tar.gz

New:
----
  PyOgg-0.6.14a1.tar.gz

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

Other differences:
------------------
++++++ python-PyOgg.spec ++++++
--- /var/tmp/diff_new_pack.PZvgBR/_old  2022-08-30 14:49:30.868125701 +0200
+++ /var/tmp/diff_new_pack.PZvgBR/_new  2022-08-30 14:49:30.872125711 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PyOgg
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-PyOgg
-Version:        0.6.12a1
+Version:        0.6.14a1
 Release:        0
 Summary:        Python bindings for Xiphorg's Ogg Vorbis, Opus and FLAC
 License:        BSD-3-Clause
@@ -37,13 +37,13 @@
 BuildRequires:  pkgconfig(vorbisfile)
 # Automatically get so numbers
 Recommends:     %( ls %{_libdir}/libogg.so.*.*.* | sed -r 
's/.*(libogg)\.so\.([0-9]*)\..*/\1\2/g' )
+Recommends:     libflac
+Recommends:     libvorbis
 Recommends:     %( ls %{_libdir}/libopus.so.*.*.* | sed -r 
's/.*(libopus)\.so\.([0-9]*)\..*/\1\2/g' )
 Recommends:     %( ls %{_libdir}/libopusenc.so.*.*.* | sed -r 
's/.*(libopusenc)\.so\.([0-9]*)\..*/\1\2/g' )
 Recommends:     %( ls %{_libdir}/libopusfile.so.*.*.* | sed -r 
's/.*(libopusfile)\.so\.([0-9]*)\..*/\1\2/g' )
 Recommends:     %( ls %{_libdir}/libvorbisenc.so.*.*.* | sed -r 
's/.*(libvorbisenc)\.so\.([0-9]*)\..*/\1\2/g' )
 Recommends:     %( ls %{_libdir}/libvorbisfile.so.*.*.* | sed -r 
's/.*(libvorbisfile)\.so\.([0-9]*)\..*/\1\2/g' )
-Recommends:     libflac
-Recommends:     libvorbis
 BuildArch:      noarch
 %python_subpackages
 

++++++ PyOgg-0.6.12a1.tar.gz -> PyOgg-0.6.14a1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/PKG-INFO new/PyOgg-0.6.14a1/PKG-INFO
--- old/PyOgg-0.6.12a1/PKG-INFO 2019-12-19 19:04:25.735978800 +0100
+++ new/PyOgg-0.6.14a1/PKG-INFO 2020-06-26 14:46:04.702528700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: PyOgg
-Version: 0.6.12a1
+Version: 0.6.14a1
 Summary: Xiph.org's Ogg Vorbis, Opus and FLAC for Python
 Home-page: https://github.com/Zuzu-Typ/PyOgg
 Author: Zuzu_Typ
@@ -163,4 +163,5 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/PyOgg.egg-info/PKG-INFO 
new/PyOgg-0.6.14a1/PyOgg.egg-info/PKG-INFO
--- old/PyOgg-0.6.12a1/PyOgg.egg-info/PKG-INFO  2019-12-19 19:04:25.000000000 
+0100
+++ new/PyOgg-0.6.14a1/PyOgg.egg-info/PKG-INFO  2020-06-26 14:46:04.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: PyOgg
-Version: 0.6.12a1
+Version: 0.6.14a1
 Summary: Xiph.org's Ogg Vorbis, Opus and FLAC for Python
 Home-page: https://github.com/Zuzu-Typ/PyOgg
 Author: Zuzu_Typ
@@ -163,4 +163,5 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/pyogg/__init__.py 
new/PyOgg-0.6.14a1/pyogg/__init__.py
--- old/PyOgg-0.6.12a1/pyogg/__init__.py        2019-12-19 18:58:36.000000000 
+0100
+++ new/PyOgg-0.6.14a1/pyogg/__init__.py        2020-06-01 10:29:13.000000000 
+0200
@@ -47,11 +47,15 @@
             bitstream = ctypes.c_int()
             bitstream_pointer = ctypes.pointer(bitstream)
 
-            new_bytes = 1
-
-            while new_bytes:
+            while True:
                 new_bytes = vorbis.libvorbisfile.ov_read(ctypes.byref(vf), 
buffer_, 4096, 0, 2, 1, bitstream_pointer)
-                self.buffer_array.append(array.raw[:new_bytes])
+                
+                array_ = ctypes.cast(buffer_, 
ctypes.POINTER(ctypes.c_char*4096)).contents
+                
+                self.buffer_array.append(array_.raw[:new_bytes])
+
+                if new_bytes == 0:
+                    break
 
             self.buffer = b"".join(self.buffer_array)
 
@@ -72,9 +76,9 @@
 
             self.frequency = info.contents.rate
 
-            self.array = 
(ctypes.c_char*(PYOGG_STREAM_BUFFER_SIZE*self.channels))()
+            array = (ctypes.c_char*(PYOGG_STREAM_BUFFER_SIZE*self.channels))()
 
-            self.buffer_ = ctypes.cast(ctypes.pointer(self.array), 
ctypes.c_char_p)
+            self.buffer_ = ctypes.cast(ctypes.pointer(array), ctypes.c_char_p)
 
             self.bitstream = ctypes.c_int()
             self.bitstream_pointer = ctypes.pointer(self.bitstream)
@@ -97,16 +101,19 @@
                 return None
             buffer = []
             total_bytes_written = 0
-
-            new_bytes = 1
             
-            while new_bytes and total_bytes_written < 
PYOGG_STREAM_BUFFER_SIZE*self.channels:
+            while True:
                 new_bytes = vorbis.ov_read(ctypes.byref(self.vf), 
self.buffer_, PYOGG_STREAM_BUFFER_SIZE*self.channels - total_bytes_written, 0, 
2, 1, self.bitstream_pointer)
                 
-                buffer.append(self.array.raw[:new_bytes])
+                array_ = ctypes.cast(self.buffer_, 
ctypes.POINTER(ctypes.c_char*(PYOGG_STREAM_BUFFER_SIZE*self.channels))).contents
+                
+                buffer.append(array_.raw[:new_bytes])
 
                 total_bytes_written += new_bytes
 
+                if new_bytes == 0 or total_bytes_written >= 
PYOGG_STREAM_BUFFER_SIZE*self.channels:
+                    break
+
             out_buffer = b"".join(buffer)
 
             if total_bytes_written == 0:
@@ -129,7 +136,7 @@
 
 
 
-if (PYOGG_OPUS_AVAIL and PYOGG_OPUS_FILE_AVAIL):
+if (PYOGG_OGG_AVAIL and PYOGG_OPUS_AVAIL and PYOGG_OPUS_FILE_AVAIL):
     class OpusFile:
         def __init__(self, path):
             error = ctypes.c_int()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/pyogg/library_loader.py 
new/PyOgg-0.6.14a1/pyogg/library_loader.py
--- old/PyOgg-0.6.12a1/pyogg/library_loader.py  2019-12-19 19:00:42.000000000 
+0100
+++ new/PyOgg-0.6.14a1/pyogg/library_loader.py  2020-06-01 10:29:13.000000000 
+0200
@@ -1,4 +1,5 @@
 import ctypes
+import ctypes.util
 import os
 import sys
 import platform
@@ -30,7 +31,7 @@
 
 class ExternalLibrary:
     @staticmethod
-    def load(name, paths = None, tests=[]):
+    def load(name, paths = None, tests = []):
         if name in _loaded_libraries:
             return _loaded_libraries[name]
         if sys.platform == "win32":
@@ -43,23 +44,23 @@
             return lib
 
     @staticmethod
-    def load_other(name, paths = None, tests=[]):
+    def load_other(name, paths = None, tests = []):
         os.environ["PATH"] += ";" + ";".join((os.getcwd(), _here))
         if paths: os.environ["PATH"] += ";" + ";".join(paths)
 
         for style in _other_styles:
-            for name in (name.upper(), name.lower()):
-                candidate = style.format(name)
-                library = ctypes.util.find_library(candidate)
+            candidate = style.format(name)
+            library = ctypes.util.find_library(candidate)
+            if library:
                 try:
                     lib = ctypes.CDLL(library)
-                    if all(run_tests(lib,tests)):
+                    if tests and all(run_tests(lib, tests)):
                         return lib
                 except:
                     pass
 
     @staticmethod
-    def load_windows(name, paths = None, tests=[]):
+    def load_windows(name, paths = None, tests = []):
         os.environ["PATH"] += ";" + ";".join((os.getcwd(), _here))
         if paths: os.environ["PATH"] += ";" + ";".join(paths)
         
@@ -69,15 +70,14 @@
             library = ctypes.util.find_library(candidate)
             if library:
                 try:
-                    lib = ctypes.CDLL(candidate)
-                    if all(run_tests(lib,tests)):
+                    lib = ctypes.CDLL(library)
+                    if tests and all(run_tests(lib, tests)):
                         return lib
-                    else:
-                        not_supported.append(candidate)
+                    not_supported.append(library)
                 except WindowsError:
                     pass
                 except OSError:
-                    not_supported.append(candidate)
+                    not_supported.append(library)
             
 
         if not_supported:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/pyogg/opus.py 
new/PyOgg-0.6.14a1/pyogg/opus.py
--- old/PyOgg-0.6.12a1/pyogg/opus.py    2019-01-14 16:32:47.000000000 +0100
+++ new/PyOgg-0.6.14a1/pyogg/opus.py    2020-06-26 14:42:23.000000000 +0200
@@ -560,6 +560,18 @@
     def opus_multistream_packet_unpad(data, len, nb_streams):
         return libopus.opus_multistream_packet_unpad(data, len, nb_streams)
       
+    libopus.opus_strerror.restype = c_char_p
+    libopus.opus_strerror.argtypes = [c_int]
+
+    def opus_strerror(error):
+        return libopus.opus_strerror(error)
+
+    libopus.opus_get_version_string.restype = c_char_p
+    libopus.opus_get_version_string.argtypes = None
+
+    def opus_get_version_string():
+        return libopus.opus_get_version_string()
+
     # /opus
 
     # opus_multistream
@@ -1206,7 +1218,7 @@
             return libopusenc.ope_encoder_write_float(enc, pcm, 
samples_per_channel)
 
         libopusenc.ope_encoder_write.restype = c_int
-        libopusenc.ope_encoder_write.argtypes = [ooe_p, c_float_p, c_int]
+        libopusenc.ope_encoder_write.argtypes = [ooe_p, opus_int16_p, c_int]
 
         def ope_encoder_write(enc, pcm, samples_per_channel):
             return libopusenc.ope_encoder_write(enc, pcm, samples_per_channel)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/pyogg/vorbis.py 
new/PyOgg-0.6.14a1/pyogg/vorbis.py
--- old/PyOgg-0.6.12a1/pyogg/vorbis.py  2019-04-01 13:19:35.000000000 +0200
+++ new/PyOgg-0.6.14a1/pyogg/vorbis.py  2020-06-01 10:29:13.000000000 +0200
@@ -169,6 +169,7 @@
                     ("localstore", c_void_p),
                     ("localtop", c_long),
                     ("localalloc", c_long),
+                    ("totaluse", c_long),
                     ("reap", POINTER(alloc_chain)),
 
                     ("glue_bits", c_long),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyOgg-0.6.12a1/setup.py new/PyOgg-0.6.14a1/setup.py
--- old/PyOgg-0.6.12a1/setup.py 2019-12-19 19:02:02.000000000 +0100
+++ new/PyOgg-0.6.14a1/setup.py 2020-06-26 14:45:44.000000000 +0200
@@ -28,7 +28,7 @@
     # Versions should comply with PEP440.  For a discussion on single-sourcing
     # the version across setup.py and the project code, see
     # https://packaging.python.org/en/latest/single_source_version.html
-    version='0.6.12a1',
+    version='0.6.14a1',
 
     description='Xiph.org\'s Ogg Vorbis, Opus and FLAC for Python',
     
@@ -70,6 +70,7 @@
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
     ],
 
     # What does your project relate to?

Reply via email to