Hello community,

here is the log from the commit of package python-Cython for openSUSE:Factory 
checked in at 2018-09-18 11:41:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Cython (Old)
 and      /work/SRC/openSUSE:Factory/.python-Cython.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Cython"

Tue Sep 18 11:41:53 2018 rev:41 rq:628791 version:0.28.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Cython/python-Cython-doc.changes  
2018-07-18 22:35:48.470566925 +0200
+++ /work/SRC/openSUSE:Factory/.python-Cython.new/python-Cython-doc.changes     
2018-09-18 11:41:58.264002516 +0200
@@ -1,0 +2,10 @@
+Sat Aug 11 16:12:10 UTC 2018 - [email protected]
+
+- update to version 0.28.5:
+  * The discouraged usage of GCC's attribute optimize("Os") was
+    replaced by the similar attribute cold to reduce the code impact
+    of the module init functions. (Github issue #2494)
+  * A reference leak in Py2.x was fixed when comparing str to unicode
+    for equality.
+
+-------------------------------------------------------------------
python-Cython.changes: same change

Old:
----
  Cython-0.28.4.tar.gz

New:
----
  Cython-0.28.5.tar.gz

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

Other differences:
------------------
++++++ python-Cython-doc.spec ++++++
--- /var/tmp/diff_new_pack.kbcSY7/_old  2018-09-18 11:42:01.511999112 +0200
+++ /var/tmp/diff_new_pack.kbcSY7/_new  2018-09-18 11:42:01.515999108 +0200
@@ -20,7 +20,7 @@
 # Tests currently fail randomly in OBS multiple local rund do not trigger them
 %bcond_with  test
 Name:           python-Cython-doc
-Version:        0.28.4
+Version:        0.28.5
 Release:        0
 Summary:        The Cython compiler for writing C extensions for the Python 
language
 License:        Apache-2.0

++++++ python-Cython.spec ++++++
--- /var/tmp/diff_new_pack.kbcSY7/_old  2018-09-18 11:42:01.531999091 +0200
+++ /var/tmp/diff_new_pack.kbcSY7/_new  2018-09-18 11:42:01.535999087 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         oldpython python
 Name:           python-Cython
-Version:        0.28.4
+Version:        0.28.5
 Release:        0
 Summary:        The Cython compiler for writing C extensions for the Python 
language
 License:        Apache-2.0

++++++ Cython-0.28.4.tar.gz -> Cython-0.28.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/.gitrev new/Cython-0.28.5/.gitrev
--- old/Cython-0.28.4/.gitrev   2018-07-08 09:46:06.000000000 +0200
+++ new/Cython-0.28.5/.gitrev   2018-08-03 09:03:07.000000000 +0200
@@ -1 +1 @@
-69714807b2ab222fbf9cc6715f28c2f13ebe436c
+15a8ec240d1e63c629ee1127691b0aaa2eacc738
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/CHANGES.rst 
new/Cython-0.28.5/CHANGES.rst
--- old/Cython-0.28.4/CHANGES.rst       2018-07-08 09:18:10.000000000 +0200
+++ new/Cython-0.28.5/CHANGES.rst       2018-08-03 08:40:16.000000000 +0200
@@ -2,6 +2,19 @@
 Cython Changelog
 ================
 
+0.28.5 (2018-08-03)
+===================
+
+Bugs fixed
+----------
+
+* The discouraged usage of GCC's attribute ``optimize("Os")`` was replaced by 
the
+  similar attribute ``cold`` to reduce the code impact of the module init 
functions.
+  (Github issue #2494)
+
+* A reference leak in Py2.x was fixed when comparing str to unicode for 
equality.
+
+
 0.28.4 (2018-07-08)
 ===================
 
@@ -32,6 +45,9 @@
 * Work around a crash bug in g++ 4.4.x by disabling the size reduction setting
   of the module init function in this version.  (Github issue #2235)
 
+* Crash when exceptions occur early during module initialisation.
+  (Github issue #2199)
+
 
 0.28.2 (2018-04-13)
 ===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/Cython/Shadow.py 
new/Cython-0.28.5/Cython/Shadow.py
--- old/Cython-0.28.4/Cython/Shadow.py  2018-07-08 09:45:52.000000000 +0200
+++ new/Cython-0.28.5/Cython/Shadow.py  2018-08-03 08:40:16.000000000 +0200
@@ -1,7 +1,7 @@
 # cython.* namespace for pure mode.
 from __future__ import absolute_import
 
-__version__ = "0.28.4"
+__version__ = "0.28.5"
 
 try:
     from __builtin__ import basestring
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/Cython/Utility/ModuleSetupCode.c 
new/Cython-0.28.5/Cython/Utility/ModuleSetupCode.c
--- old/Cython-0.28.4/Cython/Utility/ModuleSetupCode.c  2018-07-08 
09:18:10.000000000 +0200
+++ new/Cython-0.28.5/Cython/Utility/ModuleSetupCode.c  2018-08-03 
09:02:41.000000000 +0200
@@ -671,7 +671,7 @@
     #define CYTHON_SMALL_CODE
 #elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || 
(__GNUC__ == 4 && __GNUC_MINOR__ > 4)))
     // At least g++ 4.4.7 can generate crashing code with this option. (GH 
#2235)
-    #define CYTHON_SMALL_CODE __attribute__((optimize("Os")))
+    #define CYTHON_SMALL_CODE __attribute__((cold))
 #else
     #define CYTHON_SMALL_CODE
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/Cython/Utility/StringTools.c 
new/Cython-0.28.5/Cython/Utility/StringTools.c
--- old/Cython-0.28.4/Cython/Utility/StringTools.c      2018-04-13 
06:59:45.000000000 +0200
+++ new/Cython-0.28.5/Cython/Utility/StringTools.c      2018-08-03 
08:40:16.000000000 +0200
@@ -235,6 +235,9 @@
     } else {
         int result;
         PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
+        #if PY_MAJOR_VERSION < 3
+        Py_XDECREF(owned_ref);
+        #endif
         if (!py_result)
             return -1;
         result = __Pyx_PyObject_IsTrue(py_result);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/PKG-INFO new/Cython-0.28.5/PKG-INFO
--- old/Cython-0.28.4/PKG-INFO  2018-07-08 09:46:07.000000000 +0200
+++ new/Cython-0.28.5/PKG-INFO  2018-08-03 09:03:09.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Cython
-Version: 0.28.4
+Version: 0.28.5
 Summary: The Cython compiler for writing C extensions for the Python language.
 Home-page: http://cython.org/
 Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/docs/src/userguide/external_C_code.rst 
new/Cython-0.28.5/docs/src/userguide/external_C_code.rst
--- old/Cython-0.28.4/docs/src/userguide/external_C_code.rst    2018-05-27 
10:40:28.000000000 +0200
+++ new/Cython-0.28.5/docs/src/userguide/external_C_code.rst    2018-08-03 
08:40:16.000000000 +0200
@@ -363,6 +363,10 @@
 In this case, the C code ``#undef int`` is put right after
 ``#include "badheader.h"`` in the C code generated by Cython.
 
+Note that the string is parsed like any other docstring in Python.
+If you require character escapes to be passed into the C code file,
+use a raw docstring, i.e. ``r""" ... """``.
+
 
 Using Cython Declarations from C
 ================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cython-0.28.4/tests/run/fused_types.pyx 
new/Cython-0.28.5/tests/run/fused_types.pyx
--- old/Cython-0.28.4/tests/run/fused_types.pyx 2018-04-13 06:59:45.000000000 
+0200
+++ new/Cython-0.28.5/tests/run/fused_types.pyx 2018-08-03 08:40:16.000000000 
+0200
@@ -119,12 +119,12 @@
     print
     print fused_with_pointer(string_array).decode('ascii')
 
-cdef fused_type1* fused_pointer_except_null(fused_type1 x) except NULL:
+cdef fused_type1* fused_pointer_except_null(fused_type1* x) except NULL:
     if fused_type1 is string_t:
-        assert(bool(x))
+        assert(bool(x[0]))
     else:
-        assert(x < 10)
-    return &x
+        assert(x[0] < 10)
+    return x
 
 def test_fused_pointer_except_null(value):
     """
@@ -145,11 +145,14 @@
     AssertionError
     """
     if isinstance(value, int):
-        print fused_pointer_except_null(<cython.int>value)[0]
+        test_int = cython.declare(cython.int, value)
+        print fused_pointer_except_null(&test_int)[0]
     elif isinstance(value, float):
-        print fused_pointer_except_null(<cython.float>value)[0]
+        test_float = cython.declare(cython.float, value)
+        print fused_pointer_except_null(&test_float)[0]
     elif isinstance(value, bytes):
-        print fused_pointer_except_null(<string_t>value)[0].decode('ascii')
+        test_str = cython.declare(string_t, value)
+        print fused_pointer_except_null(&test_str)[0].decode('ascii')
 
 include "cythonarrayutil.pxi"
 


Reply via email to