Hello community, here is the log from the commit of package python-cffi for openSUSE:Factory checked in at 2020-10-29 09:46:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cffi (Old) and /work/SRC/openSUSE:Factory/.python-cffi.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cffi" Thu Oct 29 09:46:10 2020 rev:33 rq:838259 version:1.14.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cffi/python-cffi.changes 2020-08-25 12:38:59.429416992 +0200 +++ /work/SRC/openSUSE:Factory/.python-cffi.new.3463/python-cffi.changes 2020-10-29 09:46:13.620050778 +0100 @@ -1,0 +2,6 @@ +Mon Sep 28 11:23:13 UTC 2020 - Dirk Mueller <dmuel...@suse.com> + +- update to 1.14.3: + * no upstream changelog provided + +------------------------------------------------------------------- Old: ---- cffi-1.14.2.tar.gz New: ---- cffi-1.14.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cffi.spec ++++++ --- /var/tmp/diff_new_pack.fNHDjQ/_old 2020-10-29 09:46:14.260051383 +0100 +++ /var/tmp/diff_new_pack.fNHDjQ/_new 2020-10-29 09:46:14.260051383 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cffi -Version: 1.14.2 +Version: 1.14.3 Release: 0 Summary: Foreign Function Interface for Python calling C code License: MIT ++++++ cffi-1.14.2.tar.gz -> cffi-1.14.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.2/PKG-INFO new/cffi-1.14.3/PKG-INFO --- old/cffi-1.14.2/PKG-INFO 2020-08-15 18:42:11.000000000 +0200 +++ new/cffi-1.14.3/PKG-INFO 2020-09-15 08:08:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cffi -Version: 1.14.2 +Version: 1.14.3 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.14.2/c/_cffi_backend.c new/cffi-1.14.3/c/_cffi_backend.c --- old/cffi-1.14.2/c/_cffi_backend.c 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/c/_cffi_backend.c 2020-09-15 07:58:40.000000000 +0200 @@ -2,7 +2,7 @@ #include <Python.h> #include "structmember.h" -#define CFFI_VERSION "1.14.2" +#define CFFI_VERSION "1.14.3" #ifdef MS_WIN32 #include <windows.h> @@ -6225,9 +6225,11 @@ infotuple = Py_BuildValue("OOOO", ct, ob, py_rawerr, onerror_ob); Py_DECREF(py_rawerr); -#ifdef WITH_THREAD +#if defined(WITH_THREAD) && PY_VERSION_HEX < 0x03070000 /* We must setup the GIL here, in case the callback is invoked in - some other non-Pythonic thread. This is the same as ctypes. */ + some other non-Pythonic thread. This is the same as ctypes. + But PyEval_InitThreads() is always a no-op from CPython 3.7 + (the call from ctypes was removed some time later I think). */ PyEval_InitThreads(); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.2/c/test_c.py new/cffi-1.14.3/c/test_c.py --- old/cffi-1.14.2/c/test_c.py 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/c/test_c.py 2020-09-15 07:58:40.000000000 +0200 @@ -3,23 +3,21 @@ def _setup_path(): import os, sys - if '__pypy__' in sys.builtin_module_names: - global pytestmark - pytestmark = pytest.mark.skip( - "_cffi_backend.c: not tested on top of pypy, " - "use pypy/module/_cffi_backend/test/ instead.") - return False sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) - return True -if _setup_path(): - from _cffi_backend import _testfunc, _get_types, _get_common_types +_setup_path() from _cffi_backend import * +from _cffi_backend import _get_types, _get_common_types +try: + from _cffi_backend import _testfunc +except ImportError: + def _testfunc(num): + pytest.skip("_testunc() not available") from _cffi_backend import __version__ # ____________________________________________________________ import sys -assert __version__ == "1.14.2", ("This test_c.py file is for testing a version" +assert __version__ == "1.14.3", ("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,): @@ -70,8 +68,10 @@ path = ctypes.util.find_library(name) if path is None and name == 'c': assert sys.platform == 'win32' - assert sys.version_info >= (3,) - py.test.skip("dlopen(None) cannot work on Windows with Python 3") + assert (sys.version_info >= (3,) or + '__pypy__' in sys.builtin_module_names) + py.test.skip("dlopen(None) cannot work on Windows " + "with PyPy or Python 3") return load_library(path, flags) def test_load_library(): @@ -2553,8 +2553,8 @@ assert get_errno() == 95 def test_errno_callback(): - if globals().get('PY_DOT_PY') == '2.5': - py.test.skip("cannot run this test on py.py with Python 2.5") + if globals().get('PY_DOT_PY'): + py.test.skip("cannot run this test on py.py (e.g. fails on Windows)") set_errno(95) def cb(): e = get_errno() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.2/cffi/__init__.py new/cffi-1.14.3/cffi/__init__.py --- old/cffi-1.14.2/cffi/__init__.py 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/cffi/__init__.py 2020-09-15 07:58:40.000000000 +0200 @@ -5,8 +5,8 @@ from .error import CDefError, FFIError, VerificationError, VerificationMissing from .error import PkgConfigError -__version__ = "1.14.2" -__version_info__ = (1, 14, 2) +__version__ = "1.14.3" +__version_info__ = (1, 14, 3) # 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.14.2/cffi/_embedding.h new/cffi-1.14.3/cffi/_embedding.h --- old/cffi-1.14.2/cffi/_embedding.h 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/cffi/_embedding.h 2020-09-15 07:58:40.000000000 +0200 @@ -224,7 +224,7 @@ if (f != NULL && f != Py_None) { PyFile_WriteString("\nFrom: " _CFFI_MODULE_NAME - "\ncompiled with cffi version: 1.14.2" + "\ncompiled with cffi version: 1.14.3" "\n_cffi_backend module: ", f); modules = PyImport_GetModuleDict(); mod = PyDict_GetItemString(modules, "_cffi_backend"); @@ -331,15 +331,20 @@ /* call Py_InitializeEx() */ if (!Py_IsInitialized()) { _cffi_py_initialize(); +#if PY_VERSION_HEX < 0x03070000 PyEval_InitThreads(); +#endif PyEval_SaveThread(); /* release the GIL */ /* the returned tstate must be the one that has been stored into the autoTLSkey by _PyGILState_Init() called from Py_Initialize(). */ } else { +#if PY_VERSION_HEX < 0x03070000 + /* PyEval_InitThreads() is always a no-op from CPython 3.7 */ PyGILState_STATE state = PyGILState_Ensure(); PyEval_InitThreads(); PyGILState_Release(state); +#endif } #ifdef WITH_THREAD diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.2/cffi.egg-info/PKG-INFO new/cffi-1.14.3/cffi.egg-info/PKG-INFO --- old/cffi-1.14.2/cffi.egg-info/PKG-INFO 2020-08-15 18:42:11.000000000 +0200 +++ new/cffi-1.14.3/cffi.egg-info/PKG-INFO 2020-09-15 08:08:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cffi -Version: 1.14.2 +Version: 1.14.3 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.14.2/doc/source/conf.py new/cffi-1.14.3/doc/source/conf.py --- old/cffi-1.14.2/doc/source/conf.py 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/doc/source/conf.py 2020-09-15 07:58:40.000000000 +0200 @@ -47,7 +47,7 @@ # The short X.Y version. version = '1.14' # The full version, including alpha/beta/rc tags. -release = '1.14.2' +release = '1.14.3' # 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.14.2/doc/source/installation.rst new/cffi-1.14.3/doc/source/installation.rst --- old/cffi-1.14.2/doc/source/installation.rst 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/doc/source/installation.rst 2020-09-15 07:58:40.000000000 +0200 @@ -52,7 +52,7 @@ * https://pypi.python.org/pypi/cffi -* Checksums of the "source" package version 1.14.2: +* Checksums of the "source" package version 1.14.3: - MD5: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.2/setup.py new/cffi-1.14.3/setup.py --- old/cffi-1.14.2/setup.py 2020-08-15 18:40:06.000000000 +0200 +++ new/cffi-1.14.3/setup.py 2020-09-15 07:58:40.000000000 +0200 @@ -212,7 +212,7 @@ `Mailing list <https://groups.google.com/forum/#!forum/python-cffi>`_ """, - version='1.14.2', + version='1.14.3', packages=['cffi'] if cpython else [], package_data={'cffi': ['_cffi_include.h', 'parse_c_type.h', '_embedding.h', '_cffi_errors.h']}