Hello community,

here is the log from the commit of package python-cffi for openSUSE:Factory 
checked in at 2017-11-12 18:00:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cffi (Old)
 and      /work/SRC/openSUSE:Factory/.python-cffi.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cffi"

Sun Nov 12 18:00:48 2017 rev:18 rq:540607 version:1.11.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cffi/python-cffi.changes  2017-10-10 
11:34:21.622188188 +0200
+++ /work/SRC/openSUSE:Factory/.python-cffi.new/python-cffi.changes     
2017-11-12 18:00:51.368075777 +0100
@@ -1,0 +2,7 @@
+Fri Nov  3 15:56:32 UTC 2017 - a...@gmx.de
+
+- update to version 1.11.2:
+  * Fix Windows issue with managing the thread-state on CPython 3.0 to
+    3.5
+
+-------------------------------------------------------------------

Old:
----
  cffi-1.11.1.tar.gz

New:
----
  cffi-1.11.2.tar.gz

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

Other differences:
------------------
++++++ python-cffi.spec ++++++
--- /var/tmp/diff_new_pack.Ad7pXZ/_old  2017-11-12 18:00:52.044051156 +0100
+++ /var/tmp/diff_new_pack.Ad7pXZ/_new  2017-11-12 18:00:52.044051156 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         modname cffi
 Name:           python-%{modname}
-Version:        1.11.1
+Version:        1.11.2
 Release:        0
 Summary:        Foreign Function Interface for Python calling C code
 License:        MIT

++++++ cffi-1.11.1.tar.gz -> cffi-1.11.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/PKG-INFO new/cffi-1.11.2/PKG-INFO
--- old/cffi-1.11.1/PKG-INFO    2017-10-04 09:14:22.000000000 +0200
+++ new/cffi-1.11.2/PKG-INFO    2017-10-09 14:33:33.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: cffi
-Version: 1.11.1
+Version: 1.11.2
 Summary: Foreign Function Interface for Python calling C code.
 Home-page: http://cffi.readthedocs.org
 Author: Armin Rigo, Maciej Fijalkowski
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/c/_cffi_backend.c 
new/cffi-1.11.2/c/_cffi_backend.c
--- old/cffi-1.11.1/c/_cffi_backend.c   2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/c/_cffi_backend.c   2017-10-09 14:33:26.000000000 +0200
@@ -2,7 +2,7 @@
 #include <Python.h>
 #include "structmember.h"
 
-#define CFFI_VERSION  "1.11.1"
+#define CFFI_VERSION  "1.11.2"
 
 #ifdef MS_WIN32
 #include <windows.h>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/c/misc_thread_common.h 
new/cffi-1.11.2/c/misc_thread_common.h
--- old/cffi-1.11.1/c/misc_thread_common.h      2017-10-04 08:55:59.000000000 
+0200
+++ new/cffi-1.11.2/c/misc_thread_common.h      2017-10-09 14:33:26.000000000 
+0200
@@ -62,33 +62,35 @@
 #endif
 
 
-/* Seems that CPython 3.5.1 made our job harder.  Did not find out how
-   to do that without these hacks.  We can't use PyThreadState_GET(),
-   because that calls PyThreadState_Get() which fails an assert if the
-   result is NULL.  We can use _PyThreadState_UncheckedGet() from 3.6,
-   though.  It was added in 3.5.2 but should never be used in 3.5.x
-   because it is not available in 3.5.0 or 3.5.1. */
-#if PY_VERSION_HEX >= 0x03060000
+/* MESS.  We can't use PyThreadState_GET(), because that calls
+   PyThreadState_Get() which fails an assert if the result is NULL.
+   
+   * in Python 2.7 and <= 3.4, the variable _PyThreadState_Current
+     is directly available, so use that.
+
+   * in Python 3.5, the variable is available too, but it might be
+     the case that the headers don't define it (this changed in 3.5.1).
+     In case we're compiling with 3.5.x with x >= 1, we need to
+     manually define this variable.
+
+   * in Python >= 3.6 there is _PyThreadState_UncheckedGet().
+     It was added in 3.5.2 but should never be used in 3.5.x
+     because it is not available in 3.5.0 or 3.5.1.
+*/
+#if PY_VERSION_HEX >= 0x03050100 && PY_VERSION_HEX < 0x03060000
+PyAPI_DATA(void *volatile) _PyThreadState_Current;
+#endif
+
 static PyThreadState *get_current_ts(void)
 {
+#if PY_VERSION_HEX >= 0x03060000
     return _PyThreadState_UncheckedGet();
-}
-#else
-#  if PY_MAJOR_VERSION >= 3 && !defined(_Py_atomic_load_relaxed)
-                             /* this was abruptly un-defined in 3.5.1 */
-extern void *volatile _PyThreadState_Current;
-   /* XXX simple volatile access is assumed atomic */
-#    define _Py_atomic_load_relaxed(pp)  (*(pp))
-#  endif
-static PyThreadState *get_current_ts(void)
-{
-#  if defined(_Py_atomic_load_relaxed)
+#elif defined(_Py_atomic_load_relaxed)
     return (PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current);
-#  else
-    return _PyThreadState_Current;
-#  endif
-}
+#else
+    return (PyThreadState*)_PyThreadState_Current;  /* assume atomic read */
 #endif
+}
 
 static PyGILState_STATE gil_ensure(void)
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/c/test_c.py new/cffi-1.11.2/c/test_c.py
--- old/cffi-1.11.1/c/test_c.py 2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/c/test_c.py 2017-10-09 14:33:26.000000000 +0200
@@ -12,7 +12,7 @@
 # ____________________________________________________________
 
 import sys
-assert __version__ == "1.11.1", ("This test_c.py file is for testing a version"
+assert __version__ == "1.11.2", ("This test_c.py file is for testing a version"
                                  " of cffi that differs from the one that we"
                                  " get from 'import _cffi_backend'")
 if sys.version_info < (3,):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/cffi/__init__.py 
new/cffi-1.11.2/cffi/__init__.py
--- old/cffi-1.11.1/cffi/__init__.py    2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/cffi/__init__.py    2017-10-09 14:33:26.000000000 +0200
@@ -4,8 +4,8 @@
 from .api import FFI
 from .error import CDefError, FFIError, VerificationError, VerificationMissing
 
-__version__ = "1.11.1"
-__version_info__ = (1, 11, 1)
+__version__ = "1.11.2"
+__version_info__ = (1, 11, 2)
 
 # The verifier module file names are based on the CRC32 of a string that
 # contains the following version number.  It may be older than __version__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/cffi/_embedding.h 
new/cffi-1.11.2/cffi/_embedding.h
--- old/cffi-1.11.1/cffi/_embedding.h   2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/cffi/_embedding.h   2017-10-09 14:33:26.000000000 +0200
@@ -247,7 +247,7 @@
 
         if (f != NULL && f != Py_None) {
             PyFile_WriteString("\nFrom: " _CFFI_MODULE_NAME
-                               "\ncompiled with cffi version: 1.11.1"
+                               "\ncompiled with cffi version: 1.11.2"
                                "\n_cffi_backend module: ", f);
             modules = PyImport_GetModuleDict();
             mod = PyDict_GetItemString(modules, "_cffi_backend");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/cffi.egg-info/PKG-INFO 
new/cffi-1.11.2/cffi.egg-info/PKG-INFO
--- old/cffi-1.11.1/cffi.egg-info/PKG-INFO      2017-10-04 09:14:22.000000000 
+0200
+++ new/cffi-1.11.2/cffi.egg-info/PKG-INFO      2017-10-09 14:33:33.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: cffi
-Version: 1.11.1
+Version: 1.11.2
 Summary: Foreign Function Interface for Python calling C code.
 Home-page: http://cffi.readthedocs.org
 Author: Armin Rigo, Maciej Fijalkowski
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/doc/source/conf.py 
new/cffi-1.11.2/doc/source/conf.py
--- old/cffi-1.11.1/doc/source/conf.py  2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/doc/source/conf.py  2017-10-09 14:33:26.000000000 +0200
@@ -47,7 +47,7 @@
 # The short X.Y version.
 version = '1.11'
 # The full version, including alpha/beta/rc tags.
-release = '1.11.1'
+release = '1.11.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/doc/source/installation.rst 
new/cffi-1.11.2/doc/source/installation.rst
--- old/cffi-1.11.1/doc/source/installation.rst 2017-10-04 08:55:59.000000000 
+0200
+++ new/cffi-1.11.2/doc/source/installation.rst 2017-10-09 14:33:26.000000000 
+0200
@@ -53,7 +53,7 @@
 
 * https://pypi.python.org/pypi/cffi
 
-* Checksums of the "source" package version 1.11.1:
+* Checksums of the "source" package version 1.11.2:
 
    - MD5: ...
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/doc/source/whatsnew.rst 
new/cffi-1.11.2/doc/source/whatsnew.rst
--- old/cffi-1.11.1/doc/source/whatsnew.rst     2017-10-04 08:55:59.000000000 
+0200
+++ new/cffi-1.11.2/doc/source/whatsnew.rst     2017-10-09 14:33:26.000000000 
+0200
@@ -3,6 +3,12 @@
 ======================
 
 
+v1.11.2
+=======
+
+* Fix Windows issue with managing the thread-state on CPython 3.0 to 3.5
+
+
 v1.11.1
 =======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cffi-1.11.1/setup.py new/cffi-1.11.2/setup.py
--- old/cffi-1.11.1/setup.py    2017-10-04 08:55:59.000000000 +0200
+++ new/cffi-1.11.2/setup.py    2017-10-09 14:33:26.000000000 +0200
@@ -186,7 +186,7 @@
 
 `Mailing list <https://groups.google.com/forum/#!forum/python-cffi>`_
 """,
-        version='1.11.1',
+        version='1.11.2',
         packages=['cffi'] if cpython else [],
         package_data={'cffi': ['_cffi_include.h', 'parse_c_type.h', 
                                '_embedding.h', '_cffi_errors.h']}


Reply via email to