Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-cffi for openSUSE:Factory checked in at 2021-02-16 22:33:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cffi (Old) and /work/SRC/openSUSE:Factory/.python-cffi.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cffi" Tue Feb 16 22:33:57 2021 rev:35 rq:871527 version:1.14.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cffi/python-cffi.changes 2020-12-23 14:18:56.753578860 +0100 +++ /work/SRC/openSUSE:Factory/.python-cffi.new.28504/python-cffi.changes 2021-02-16 22:34:03.497461613 +0100 @@ -1,0 +2,6 @@ +Fri Feb 12 20:15:07 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 1.14.5: + * Source fix for old gcc versions + +------------------------------------------------------------------- Old: ---- cffi-1.14.4.tar.gz New: ---- cffi-1.14.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cffi.spec ++++++ --- /var/tmp/diff_new_pack.ShvYco/_old 2021-02-16 22:34:04.137462491 +0100 +++ /var/tmp/diff_new_pack.ShvYco/_new 2021-02-16 22:34:04.141462496 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-cffi # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 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-cffi -Version: 1.14.4 +Version: 1.14.5 Release: 0 Summary: Foreign Function Interface for Python calling C code License: MIT ++++++ cffi-1.14.4.tar.gz -> cffi-1.14.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/PKG-INFO new/cffi-1.14.5/PKG-INFO --- old/cffi-1.14.4/PKG-INFO 2020-11-24 15:09:03.000000000 +0100 +++ new/cffi-1.14.5/PKG-INFO 2021-02-11 20:54:42.634946800 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cffi -Version: 1.14.4 +Version: 1.14.5 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.4/c/_cffi_backend.c new/cffi-1.14.5/c/_cffi_backend.c --- old/cffi-1.14.4/c/_cffi_backend.c 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/c/_cffi_backend.c 2021-02-11 18:41:21.000000000 +0100 @@ -2,7 +2,7 @@ #include <Python.h> #include "structmember.h" -#define CFFI_VERSION "1.14.4" +#define CFFI_VERSION "1.14.5" #ifdef MS_WIN32 #include <windows.h> @@ -6268,6 +6268,17 @@ return infotuple; } +/* messily try to silence a gcc/clang deprecation warning for + ffi_prep_closure. Don't miss the "pragma pop" after the function. + This is done around the whole function because very old GCCs don't + support it inside a function. */ +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +#elif defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif static PyObject *b_callback(PyObject *self, PyObject *args) { CTypeDescrObject *ct; @@ -6336,21 +6347,8 @@ PyErr_Format(PyExc_SystemError, "ffi_prep_closure_loc() is missing"); goto error; #else -/* messily try to silence a gcc/clang deprecation warning here */ -# if defined(__clang__) -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wdeprecated-declarations" -# elif defined(__GNUC__) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" -# endif status = ffi_prep_closure(closure, &cif_descr->cif, invoke_callback, infotuple); -# if defined(__clang__) -# pragma clang diagnostic pop -# elif defined(__GNUC__) -# pragma GCC diagnostic pop -# endif #endif } @@ -6393,6 +6391,11 @@ Py_XDECREF(infotuple); return NULL; } +#if defined(__clang__) +# pragma clang diagnostic pop +#elif defined(__GNUC__) +# pragma GCC diagnostic pop +#endif static PyObject *b_new_enum_type(PyObject *self, PyObject *args) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/c/test_c.py new/cffi-1.14.5/c/test_c.py --- old/cffi-1.14.4/c/test_c.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/c/test_c.py 2021-02-11 18:41:21.000000000 +0100 @@ -17,7 +17,7 @@ # ____________________________________________________________ import sys -assert __version__ == "1.14.4", ("This test_c.py file is for testing a version" +assert __version__ == "1.14.5", ("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,): @@ -3974,6 +3974,20 @@ with pytest.raises(ValueError): release(pv[0]) +def test_issue483(): + BInt = new_primitive_type("int") + BIntP = new_pointer_type(BInt) + BIntA = new_array_type(BIntP, None) + lst = list(range(25)) + bytestring = bytearray(buffer(newp(BIntA, lst))[:] + b'XYZ') + p1 = from_buffer(BIntA, bytestring) # int[] + assert len(buffer(p1)) == 25 * size_of_int() + assert sizeof(p1) == 25 * size_of_int() + # + p2 = from_buffer(BIntP, bytestring) + assert sizeof(p2) == size_of_ptr() + assert len(buffer(p2)) == size_of_int() # first element only, by default + def test_memmove(): Short = new_primitive_type("short") ShortA = new_array_type(new_pointer_type(Short), None) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/cffi/__init__.py new/cffi-1.14.5/cffi/__init__.py --- old/cffi-1.14.4/cffi/__init__.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/cffi/__init__.py 2021-02-11 18:41:21.000000000 +0100 @@ -5,8 +5,8 @@ from .error import CDefError, FFIError, VerificationError, VerificationMissing from .error import PkgConfigError -__version__ = "1.14.4" -__version_info__ = (1, 14, 4) +__version__ = "1.14.5" +__version_info__ = (1, 14, 5) # 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.4/cffi/_embedding.h new/cffi-1.14.5/cffi/_embedding.h --- old/cffi-1.14.4/cffi/_embedding.h 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/cffi/_embedding.h 2021-02-11 18:41:21.000000000 +0100 @@ -224,7 +224,7 @@ if (f != NULL && f != Py_None) { PyFile_WriteString("\nFrom: " _CFFI_MODULE_NAME - "\ncompiled with cffi version: 1.14.4" + "\ncompiled with cffi version: 1.14.5" "\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.14.4/cffi.egg-info/PKG-INFO new/cffi-1.14.5/cffi.egg-info/PKG-INFO --- old/cffi-1.14.4/cffi.egg-info/PKG-INFO 2020-11-24 15:09:03.000000000 +0100 +++ new/cffi-1.14.5/cffi.egg-info/PKG-INFO 2021-02-11 20:54:42.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cffi -Version: 1.14.4 +Version: 1.14.5 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.4/doc/source/conf.py new/cffi-1.14.5/doc/source/conf.py --- old/cffi-1.14.4/doc/source/conf.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/doc/source/conf.py 2021-02-11 18:41:21.000000000 +0100 @@ -47,7 +47,7 @@ # The short X.Y version. version = '1.14' # The full version, including alpha/beta/rc tags. -release = '1.14.4' +release = '1.14.5' # 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.4/doc/source/installation.rst new/cffi-1.14.5/doc/source/installation.rst --- old/cffi-1.14.4/doc/source/installation.rst 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/doc/source/installation.rst 2021-02-11 18:41:21.000000000 +0100 @@ -52,7 +52,7 @@ * https://pypi.python.org/pypi/cffi -* Checksums of the "source" package version 1.14.4: +* Checksums of the "source" package version 1.14.5: - MD5: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/doc/source/whatsnew.rst new/cffi-1.14.5/doc/source/whatsnew.rst --- old/cffi-1.14.4/doc/source/whatsnew.rst 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/doc/source/whatsnew.rst 2021-02-11 18:41:21.000000000 +0100 @@ -3,6 +3,24 @@ ====================== +v1.14.5 +======= + +* Source fix for old gcc versions + +* This and future releases should include wheels on more platforms, + thanks to our new release managers Matt and Matt! + +v1.14.4 +======= + +Release done for pip reasons. + +v1.14.3 +======= + +Release done for pip reasons. + v1.14.2 ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/setup.py new/cffi-1.14.5/setup.py --- old/cffi-1.14.4/setup.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/setup.py 2021-02-11 18:41:21.000000000 +0100 @@ -71,10 +71,6 @@ config = Distribution().get_command_obj('config') return config -def macosx_deployment_target(): - from distutils.sysconfig import get_config_var - return tuple(map(int, get_config_var("MACOSX_DEPLOYMENT_TARGET").split('.'))) - def ask_supports_thread(): config = get_config() ok = (sys.platform != 'win32' and @@ -191,7 +187,7 @@ `Mailing list <https://groups.google.com/forum/#!forum/python-cffi>`_ """, - version='1.14.4', + version='1.14.5', packages=['cffi'] if cpython else [], package_data={'cffi': ['_cffi_include.h', 'parse_c_type.h', '_embedding.h', '_cffi_errors.h']} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/setup_base.py new/cffi-1.14.5/setup_base.py --- old/cffi-1.14.4/setup_base.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/setup_base.py 2021-02-05 02:15:40.000000000 +0100 @@ -8,6 +8,7 @@ if __name__ == '__main__': from distutils.core import setup from distutils.extension import Extension + standard = '__pypy__' not in sys.builtin_module_names setup(packages=['cffi'], requires=['pycparser'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cffi-1.14.4/testing/cffi0/test_version.py new/cffi-1.14.5/testing/cffi0/test_version.py --- old/cffi-1.14.4/testing/cffi0/test_version.py 2020-11-24 15:08:38.000000000 +0100 +++ new/cffi-1.14.5/testing/cffi0/test_version.py 2021-02-05 02:15:40.000000000 +0100 @@ -36,7 +36,12 @@ v = cffi.__version__.replace('+', '') p = os.path.join(parent, 'doc', 'source', 'installation.rst') content = open(p).read() - assert (" package version %s:" % v) in content + if " package version %s:" % v not in content: + for i in range(5): + if " package version %s-%d:" % (v, i) in content: + break + else: + assert 0, "doc/source/installation.rst needs updating" def test_setup_version(): parent = os.path.dirname(os.path.dirname(cffi.__file__))