Accepting request 352713 from home:stroeder:branches:devel:languages:python

update to upstream release 1.4.2 (needed for new python-cryptography 1.2.1)

OBS-URL: https://build.opensuse.org/request/show/352713
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cffi?expand=0&rev=23
This commit is contained in:
Todd R 2016-01-11 08:06:05 +00:00 committed by Git OBS Bridge
parent 0011c2876b
commit 6a1a88ab62
4 changed files with 75 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eab571deb0a152e2f53c404c08a94870a131526896cad08cd43bf86ce3771e3d
size 335778

3
cffi-1.4.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f1d177d364ea35900415ae24ca3e471be3d5334ed0419294068c49f45913998
size 365490

View File

@ -1,3 +1,74 @@
-------------------------------------------------------------------
Sat Jan 9 17:18:52 UTC 2016 - michael@stroeder.com
- update to version 1.4.2:
* Nothing changed from v1.4.1.
- changes from version 1.4.1:
* Fix the compilation failure of cffi on CPython 3.5.0. (3.5.1
works; some detail changed that makes some underscore-starting
macros disappear from view of extension modules, and I worked
around it, thinking it changed in all 3.5 versions—but no: it was
only in 3.5.1.)
- changes from version 1.4.0:
* A better way to do callbacks has been added (faster and more
portable, and usually cleaner). It is a mechanism for the
out-of-line API mode that replaces the dynamic creation of
callback objects (i.e. C functions that invoke Python) with the
static declaration in cdef() of which callbacks are needed. This
is more C-like, in that you have to structure your code around the
idea that you get a fixed number of function pointers, instead of
creating them on-the-fly.
* ffi.compile() now takes an optional verbose argument. When True,
distutils prints the calls to the compiler.
* ffi.compile() used to fail if given sources with a path that
includes "..". Fixed.
* ffi.init_once() added. See docs.
* dir(lib) now works on libs returned by ffi.dlopen() too.
* Cleaned up and modernized the content of the demo subdirectory in
the sources (thanks matti!).
* ffi.new_handle() is now guaranteed to return unique void * values,
even if called twice on the same object. Previously, in that case,
CPython would return two cdata objects with the same void *
value. This change is useful to add and remove handles from a
global dict (or set) without worrying about duplicates. It already
used to work like that on PyPy. This change can break code that
used to work on CPython by relying on the object to be kept alive
by other means than keeping the result of ffi.new_handle()
alive. (The corresponding warning in the docs of ffi.new_handle()
has been here since v0.8!)
- changes from version 1.3.1:
* The optional typedefs (bool, FILE and all Windows types) were not
always available from out-of-line FFI objects.
* Opaque enums are phased out from the cdefs: they now give a
warning, instead of (possibly wrongly) being assumed equal to
unsigned int. Please report if you get a reasonable use case for
them.
* Some parsing details, notably volatile is passed along like const
and restrict. Also, older versions of pycparser mis-parse some
pointer-to-pointer types like char * const *: the “const” ends up
at the wrong place. Added a workaround.
- changes from version 1.3.0:
* Added ffi.memmove().
* Pull request #64: out-of-line API mode: we can now declare
floating-point types with typedef float... foo_t;. This only works
if foo_t is a float or a double, not long double.
* Issue #217: fix possible unaligned pointer manipulation, which
crashes on some architectures (64-bit, non-x86).
* Issues #64 and #126: when using set_source() or verify(), the
const and restrict keywords are copied from the cdef to the
generated C code; this fixes warnings by the C compiler. It also
fixes corner cases like typedef const int T; T a; which would
previously not consider a as a constant. (The cdata objects
themselves are never const.)
* Win32: support for __stdcall. For callbacks and function pointers;
regular C functions still dont need to have their calling
convention declared.
* Windows: CPython 2.7 distutils doesnt work with Microsofts
official Visual Studio for Python, and Im told this is not a
bug. For ffi.compile(), we removed a workaround that was inside
cffi but which had unwanted side-effects. Try saying import
setuptools first, which patches distutils...
-------------------------------------------------------------------
Thu Sep 17 11:28:00 UTC 2015 - p.drouand@gmail.com

View File

@ -17,7 +17,7 @@
Name: python-cffi
Version: 1.2.1
Version: 1.4.2
Release: 0
Summary: Foreign Function Interface for Python calling C code
License: MIT