Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-lzo for 
openSUSE:Factory checked in at 2022-01-16 23:18:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-lzo (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-lzo.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-lzo"

Sun Jan 16 23:18:23 2022 rev:3 rq:946782 version:1.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-lzo/python-python-lzo.changes      
2020-06-18 10:28:12.660839080 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-lzo.new.1892/python-python-lzo.changes
    2022-01-16 23:19:21.230380102 +0100
@@ -1,0 +2,8 @@
+Sun Jan 16 12:18:43 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 1.14
+  * Add python2 support statement
+  * Fix 32bit int limitations
+- Includes support for Python 3.10 now
+
+-------------------------------------------------------------------

Old:
----
  python-lzo-1.12.tar.gz

New:
----
  _constraints
  python-lzo-1.14.tar.gz

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

Other differences:
------------------
++++++ python-python-lzo.spec ++++++
--- /var/tmp/diff_new_pack.JFn0S9/_old  2022-01-16 23:19:21.658380313 +0100
+++ /var/tmp/diff_new_pack.JFn0S9/_new  2022-01-16 23:19:21.666380317 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-lzo
 #
-# 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-python-lzo
-Version:        1.12
+Version:        1.14
 Release:        0
 Summary:        Python bindings for the LZO data compression library
 License:        GPL-2.0-only
@@ -56,6 +56,7 @@
 %files %{python_files}
 %doc NEWS
 %license COPYING
-%{python_sitearch}/*
+%{python_sitearch}/lzo.*so
+%{python_sitearch}/python_lzo-%{version}*-info
 
 %changelog

++++++ _constraints ++++++
<constraints>
  <hardware>
    <physicalmemory>
      <size unit="G">8</size>
    </physicalmemory>
  </hardware>
</constraints>

++++++ python-lzo-1.12.tar.gz -> python-lzo-1.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/NEWS new/python-lzo-1.14/NEWS
--- old/python-lzo-1.12/NEWS    2018-05-23 22:55:34.000000000 +0200
+++ new/python-lzo-1.14/NEWS    2021-12-26 08:53:08.734387900 +0100
@@ -2,7 +2,14 @@
 User visible changes for Python-LZO
 =======================================================================
 
-Changes in 1.12 (23 Mat 2018)
+Changes in 1.14 (26 Dec 2021)
+  * 1.13 was accidently not python2.7 compatible in packaging.  Try again.
+
+Changes in 1.13 (26 Dec 2021)
+  * Add python2 support statement
+  * Fix 32bit int limitations
+
+Changes in 1.12 (23 May 2018)
   * Update Windows support to lzo 2.0x.
   * Start Windows CI testing.
   * Adjust setup.py for jhbuild compatibility.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/PKG-INFO new/python-lzo-1.14/PKG-INFO
--- old/python-lzo-1.12/PKG-INFO        2018-05-24 06:28:07.000000000 +0200
+++ new/python-lzo-1.14/PKG-INFO        2021-12-26 08:54:18.882387900 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: python-lzo
-Version: 1.12
+Version: 1.14
 Summary: Python bindings for the LZO data compression library
 Home-page: https://github.com/jd-boyd/python-lzo
 Author: Joshua D. Boyd
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/lzomodule.c 
new/python-lzo-1.14/lzomodule.c
--- old/python-lzo-1.12/lzomodule.c     2018-05-23 22:55:34.000000000 +0200
+++ new/python-lzo-1.14/lzomodule.c     2021-12-26 08:53:44.162387800 +0100
@@ -29,7 +29,9 @@
  */
 
 
-#define MODULE_VERSION  "1.12"
+#define MODULE_VERSION  "1.14"
+
+#define PY_SSIZE_T_CLEAN
 
 #include <Python.h>
 #include <lzo/lzo1x.h>
@@ -83,7 +85,7 @@
     lzo_uint in_len;
     lzo_uint out_len;
     lzo_uint new_len;
-    int len;
+    Py_ssize_t len;
     int level = 1;
     int header = 1;
     int err;
@@ -95,6 +97,16 @@
     if (len < 0)
         return NULL;
 
+    if (len > LZO_UINT_MAX) {
+      PyErr_SetString(LzoError, "Input size is larger than LZO_UINT_MAX");
+      return NULL;
+    }
+
+    if ((len + len / 16 + 64 + 3) > LZO_UINT_MAX) {
+      PyErr_SetString(LzoError, "Output size is larger than LZO_UINT_MAX");
+      return NULL;
+    }
+
     in_len = len;
     out_len = in_len + in_len / 16 + 64 + 3;
 
@@ -189,7 +201,7 @@
     lzo_uint in_len;
     lzo_uint out_len;
     lzo_uint new_len;
-    int len;
+    Py_ssize_t len;
     int buflen = -1;
     int header = 1;
     int err;
@@ -274,7 +286,7 @@
     lzo_uint in_len;
     lzo_uint out_len;
     lzo_uint new_len;
-    int len;
+    Py_ssize_t len;
     int err;
     int header = 1;
     int buflen = -1;
@@ -356,7 +368,7 @@
 adler32(PyObject *dummy, PyObject *args)
 {
     char *buf;
-    int len;
+    Py_ssize_t len;
     unsigned long val = 1; /* == lzo_adler32(0, NULL, 0); */
 
     UNUSED(dummy);
@@ -392,7 +404,7 @@
 crc32(PyObject *dummy, PyObject *args)
 {
     char *buf;
-    int len;
+    Py_ssize_t len;
     unsigned long val = 0; /* == lzo_crc32(0, NULL, 0); */
 
     UNUSED(dummy);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/setup.py new/python-lzo-1.14/setup.py
--- old/python-lzo-1.12/setup.py        2018-05-24 06:27:55.000000000 +0200
+++ new/python-lzo-1.14/setup.py        2021-12-26 08:53:27.350387800 +0100
@@ -55,7 +55,7 @@
     extra_objects.append(lib_file)
 else:
     libraries = ["lzo2"]
-    include_dirs.append(os.environ.get("PREFIX", "/usr")+"/include/lzo")
+    include_dirs.append(os.environ.get("PREFIX", "/usr")+"/include")
     ##library_dirs.append("/usr/local/lib")
     ##runtime_library_dirs.append("/usr/local/lib")
 
@@ -83,7 +83,7 @@
 
 setup_args = get_kw(
     name="python-lzo",
-    version="1.12",
+    version="1.14",
     description="Python bindings for the LZO data compression library",
     author="Markus F.X.J. Oberhumer",
     author_email="mar...@oberhumer.com",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/tests/test.py 
new/python-lzo-1.14/tests/test.py
--- old/python-lzo-1.12/tests/test.py   2016-01-25 08:16:40.000000000 +0100
+++ new/python-lzo-1.14/tests/test.py   2021-12-25 07:37:10.486580100 +0100
@@ -96,11 +96,17 @@
 
 def test_lzo():
     yield gen, b"aaaaaaaaaaaaaaaaaaaaaaaa"
-    yield gen_raw, b"aaaaaaaaaaaaaaaaaaaaaaaa"
     yield gen, b"abcabcabcabcabcabcabcabc"
-    yield gen_raw, b"abcabcabcabcabcabcabcabc"
     yield gen, b"abcabcabcabcabcabcabcabc", 9
+
+
+def test_lzo_raw():
+    yield gen_raw, b"aaaaaaaaaaaaaaaaaaaaaaaa"
+    yield gen_raw, b"abcabcabcabcabcabcabcabc"
     yield gen_raw, b"abcabcabcabcabcabcabcabc", 9
+
+
+def test_lzo_empty():
     yield gen, b""
     yield gen_raw, b""
 
@@ -113,41 +119,8 @@
     gen_raw(b" " * 131072)
 
 
-def main(args):
-    # display version information and module documentation
-    print("LZO version %s (0x%x), %s" % (lzo.LZO_VERSION_STRING, 
lzo.LZO_VERSION, lzo.LZO_VERSION_DATE))
-    print(lzo.__file__)
-    print()
-    print(lzo.__doc__)
-
-    # display additional module information
-    ## print dir(lzo)
-    ## print_modinfo()
-
-    # compress some simple strings
-    gen(b"aaaaaaaaaaaaaaaaaaaaaaaa")
-    gen_raw(b"aaaaaaaaaaaaaaaaaaaaaaaa")
-    gen(b"abcabcabcabcabcabcabcabc")
-    gen_raw(b"abcabcabcabcabcabcabcabc")
-    gen(b"abcabcabcabcabcabcabcabc", level=9)
-    gen_raw(b"abcabcabcabcabcabcabcabc", level=9)
-    gen(b" " * 131072)
-    gen_raw(b" " * 131072)
-    gen(b"")
-    gen_raw(b"")
-    print("Simple compression test passed.")
-
-    test_version()
-
-    # force an exception (because of invalid compressed data)
-    assert issubclass(lzo.error, Exception)
-    try:
-        x = lzo.decompress("xx")
-    except lzo.error:
-        pass
-    else:
-        print("Exception handling does NOT work !")
-    return 0
-
-if __name__ == '__main__':
-    sys.exit(main(sys.argv))
+if sys.maxsize > 1<<32:
+    # This test raises OverflowError on 32-bit Pythons. Compressing
+    # this much data requires a 64-bit system.
+    def test_lzo_compress_extremely_big():
+        b = lzo.compress(bytes(bytearray((1024**3)*2)))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-lzo-1.12/tests/util.py 
new/python-lzo-1.14/tests/util.py
--- old/python-lzo-1.12/tests/util.py   2014-02-04 20:16:40.000000000 +0100
+++ new/python-lzo-1.14/tests/util.py   2021-12-25 07:37:10.486580100 +0100
@@ -45,7 +45,7 @@
     if p: p0 = p[0]
     #
     plat = get_platform()
-    plat_specifier = "%s-%s" % (plat, sys.version[:3])
+    plat_specifier = "%s-%d.%d" % (plat, sys.version_info[0], 
sys.version_info[1])
     ##print plat, plat_specifier
     #
     for prefix in (p0, os.curdir, os.pardir,):

Reply via email to