debian/0000755000000000000000000000000012314014150007155 5ustar debian/copyright0000644000000000000000000000310612266543215011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CFFI Upstream-Contact: Armin Rigo Source: http://pypi.python.org/pypi/cffi/ Files: * Copyright: 2012-2013, Armin Rigo 2012-2013, Maciej Fijalkowski License: Expat Files: c/libffi_msvc/* Copyright: 1996-2003, Red Hat, Inc. 2002, Bo Thorsen 2001, John Beniton 2002, Ranjit Mathew 2002, Roger Sayle License: Expat Files: debian/* Copyright: 2012-2014, Stefano Rivera License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/changelog0000644000000000000000000000474312314014150011037 0ustar python-cffi (0.8.2-0ubuntu1) trusty; urgency=medium * New upstream version. * Remove patches applied upstream. -- Matthias Klose Mon, 24 Mar 2014 12:26:53 +0100 python-cffi (0.8.1-1ubuntu4) trusty; urgency=medium * Add upstream-link-sin.diff: Backport upstream commit to fix linking with -lm in the tests. Hopefully fixes i386 test failure/FTBFS (not reproducible locally). -- Martin Pitt Tue, 25 Feb 2014 16:58:33 +0100 python-cffi (0.8.1-1ubuntu3) trusty; urgency=medium * Disable autopkgtest on non-x86. Running it on armhf and ppc64 produces massive stdout output, resulting in two 2.5 GB log files. -- Martin Pitt Fri, 21 Feb 2014 08:46:03 -0800 python-cffi (0.8.1-1ubuntu2) trusty; urgency=medium * AArch64 fixes (Will Newton). LP: #1271256. -- Matthias Klose Wed, 22 Jan 2014 13:30:00 +0100 python-cffi (0.8.1-1ubuntu1) trusty; urgency=medium * Ignore the test results on AArch64, see lp #1271256. -- Matthias Klose Tue, 21 Jan 2014 18:36:04 +0100 python-cffi (0.8.1-1) unstable; urgency=medium * New upstream release. * Drop big-endian-bitfields patch, superseded upstream. * Patch: py3.4-test-failure. Add a missing goto to an error path. (Closes: #734299, LP: #1270401) -- Stefano Rivera Sat, 18 Jan 2014 20:22:26 +0200 python-cffi (0.7.2-2) unstable; urgency=low * Patch: big-endian-bitfields. Handle bitfields correctly on big endian archs. -- Stefano Rivera Sun, 01 Sep 2013 17:41:20 +0200 python-cffi (0.7.2-1) unstable; urgency=low [ Stefano Rivera ] * New upstream release. - Supports creating void * handles for Python objects. * Switched watch file to https. * Build with pybuild. * Use -m pytest in autopkgtests. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Stefano Rivera Fri, 09 Aug 2013 16:22:47 +0200 python-cffi (0.6-1) unstable; urgency=low * New upstream release. - Fixing most of the build failures. * Drop all patches (superseded upstream). * autopkgtests: Depend on python-dev / python3-dev. * Suggest python-dev / python3-dev (needed for building verifier extensions). -- Stefano Rivera Tue, 16 Apr 2013 18:18:19 +0200 python-cffi (0.5-1) unstable; urgency=low * Initial package (Closes: #700084) -- Stefano Rivera Mon, 25 Feb 2013 12:12:31 +0200 debian/clean0000644000000000000000000000001512112243550010162 0ustar *.egg-info/* debian/compat0000644000000000000000000000000212112243550010357 0ustar 9 debian/patches/0000755000000000000000000000000012314014020010600 5ustar debian/patches/cffi-aarch64.diff0000644000000000000000000000463012314014020013572 0ustar Index: b/c/_cffi_backend.c =================================================================== --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -3600,7 +3600,7 @@ #ifdef MS_WIN32 sflags |= SF_MSVC_BITFIELDS; #else -# ifdef __arm__ +# if defined(__arm__) || defined(__aarch64__) sflags |= SF_GCC_ARM_BITFIELDS; # else sflags |= SF_GCC_X86_BITFIELDS; Index: b/testing/test_ffi_backend.py =================================================================== --- a/testing/test_ffi_backend.py +++ b/testing/test_ffi_backend.py @@ -122,7 +122,7 @@ self.check("int a:2; short b:15; char c:2; char y;", 5, 4, 8) self.check("int a:2; char b:1; char c:1; char y;", 1, 4, 4) - @pytest.mark.skipif("platform.machine().startswith('arm')") + @pytest.mark.skipif("platform.machine().startswith('arm') or platform.machine().startswith('aarch64')") def test_bitfield_anonymous_no_align(self): L = FFI().alignof("long long") self.check("char y; int :1;", 0, 1, 2) @@ -135,7 +135,7 @@ self.check("char x; long long z:57; char y;", L + 8, L, L + 8 + L) self.check("char x; long long :57; char y;", L + 8, 1, L + 9) - @pytest.mark.skipif("not platform.machine().startswith('arm')") + @pytest.mark.skipif("not (platform.machine().startswith('arm') or platform.machine().startswith('aarch64'))") def test_bitfield_anonymous_align_arm(self): L = FFI().alignof("long long") self.check("char y; int :1;", 0, 4, 4) @@ -148,7 +148,7 @@ self.check("char x; long long z:57; char y;", L + 8, L, L + 8 + L) self.check("char x; long long :57; char y;", L + 8, L, L + 8 + L) - @pytest.mark.skipif("platform.machine().startswith('arm')") + @pytest.mark.skipif("platform.machine().startswith('arm') or platform.machine().startswith('aarch64')") def test_bitfield_zero(self): L = FFI().alignof("long long") self.check("char y; int :0;", 0, 1, 4) @@ -159,7 +159,7 @@ self.check("char x; int :0; short b:1; char y;", 5, 2, 6) self.check("int a:1; int :0; int b:1; char y;", 5, 4, 8) - @pytest.mark.skipif("not platform.machine().startswith('arm')") + @pytest.mark.skipif("not (platform.machine().startswith('arm') or platform.machine().startswith('aarch64'))") def test_bitfield_zero_arm(self): L = FFI().alignof("long long") self.check("char y; int :0;", 0, 4, 4) debian/patches/series0000644000000000000000000000002212314013422012014 0ustar cffi-aarch64.diff debian/control0000644000000000000000000000622512200545451010574 0ustar Source: python-cffi Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Stefano Rivera Build-Depends: debhelper (>= 9), dh-python, libffi-dev, python-all-dbg, python-all-dev (>= 2.6.6-3~), python-py, python-pycparser, python-pytest, python-setuptools, python-virtualenv, python3-all-dbg, python3-all-dev (>= 3.1.2-6~), python3-py, python3-pycparser, python3-pytest, python3-setuptools Standards-Version: 3.9.4 Homepage: http://cffi.readthedocs.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-cffi/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-cffi/trunk/ X-Python-Version: >= 2.6 X-Python3-Version: >= 3.1 XS-Testsuite: autopkgtest Package: python-cffi Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Suggests: python-dev Description: Foreign Function Interface for Python calling C code Convenient and reliable way of calling C code from Python. . The aim of this project is to provide a convenient and reliable way of calling C code from Python. It keeps Python logic in Python, and minimises the C required. It is able to work at either the C API or ABI level, unlike most other approaches, that only support the ABI level. Package: python-cffi-dbg Architecture: any Section: debug Priority: extra Depends: python-cffi (= ${binary:Version}), ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Description: Foreign Function Interface for Python calling C code (Debug version) Convenient and reliable way of calling C code from Python. . The aim of this project is to provide a convenient and reliable way of calling C code from Python. It keeps Python logic in Python, and minimises the C required. It is able to work at either the C API or ABI level, unlike most other approaches, that only support the ABI level. . This package contains the debug version of python-cffi. Package: python3-cffi Architecture: any Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Suggests: python3-dev Description: Foreign Function Interface for Python 3 calling C code Convenient and reliable way of calling C code from Python 3. . The aim of this project is to provide a convenient and reliable way of calling C code from Python. It keeps Python logic in Python, and minimises the C required. It is able to work at either the C API or ABI level, unlike most other approaches, that only support the ABI level. Package: python3-cffi-dbg Architecture: any Section: debug Priority: extra Depends: python3-cffi (= ${binary:Version}), ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Description: Foreign Function Interface for Python 3 calling C code (Debug version) Convenient and reliable way of calling C code from Python 3. . The aim of this project is to provide a convenient and reliable way of calling C code from Python. It keeps Python logic in Python, and minimises the C required. It is able to work at either the C API or ABI level, unlike most other approaches, that only support the ABI level. . This package contains the debug version of python-cffi. debian/tests/0000755000000000000000000000000012301701310010314 5ustar debian/tests/unittests0000755000000000000000000000112612301701206012310 0ustar #!/bin/sh set -efu # on arm/ppc64el this produces a massive 2.5 GB log file, disable for now arch=`uname -m` [ $arch = x86_64 ] || [ $arch = i686 ] || { echo "Skipping test until the massive stdout log gets fixed" exit 0 } pythons="$(pyversions -r)" cp -a c testing "$ADTTMP" # Not appropriate: rm "$ADTTMP"/testing/test_version.py # Delete any stale __pycache__s find "$ADTTMP" -name '__pycache__' -print0 | xargs -0 rm -rf cd "$ADTTMP" for py in $pythons; do echo "======= $py =======" $py -m pytest c testing echo "======= $py-dbg =======" $py-dbg -m pytest c testing 2>&1 done debian/tests/unittests30000755000000000000000000000112712301701306012375 0ustar #!/bin/sh set -efu # on arm/ppc64el this produces a massive 2.5 GB log file, disable for now arch=`uname -m` [ $arch = x86_64 ] || [ $arch = i686 ] || { echo "Skipping test until the massive stdout log gets fixed" exit 0 } pythons="$(py3versions -r)" cp -a c testing "$ADTTMP" # Not appropriate: rm "$ADTTMP"/testing/test_version.py # Delete any stale __pycache__s find "$ADTTMP" -name '__pycache__' -print0 | xargs -0 rm -rf cd "$ADTTMP" for py in $pythons; do echo "======= $py =======" $py -m pytest c testing echo "======= $py-dbg =======" $py-dbg -m pytest c testing 2>&1 done debian/tests/control0000644000000000000000000000043612200545451011734 0ustar Tests: unittests Depends: python-all-dbg, python-all-dev, python-cffi, python-cffi-dbg, python-py, python-pytest, python-virtualenv Tests: unittests3 Depends: python-virtualenv, python3-all-dbg, python3-all-dev, python3-cffi, python3-cffi-dbg, python3-py, python3-pytest debian/rules0000755000000000000000000000145612267745340010266 0ustar #!/usr/bin/make -f DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) export PYBUILD_DESTDIR_python2=debian/python-cffi/ export PYBUILD_DESTDIR_python2-dbg=debian/python-cffi-dbg/ export PYBUILD_DESTDIR_python3=debian/python3-cffi/ export PYBUILD_DESTDIR_python3-dbg=debian/python3-cffi-dbg/ %: dh $@ --with python2,python3 --buildsystem pybuild override_dh_auto_test: PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="{interpreter} -m pytest c/ testing/" \ dh_auto_test override_dh_strip: dh_strip -p python-cffi -p python-cffi-dbg --dbg-package=python-cffi-dbg dh_strip -p python3-cffi -p python3-cffi-dbg --dbg-package=python3-cffi-dbg dh_strip --remaining-packages override_dh_clean: dh_clean rm -rf $(wildcard testing/snippets/*/build testing/snippets/*/dist testing/snippets/*/*.egg-info) debian/source/0000755000000000000000000000000012266543360010475 5ustar debian/source/format0000644000000000000000000000001412112243550011667 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012012200454110010175 0ustar version=3 https://pypi.python.org/packages/source/c/cffi/cffi-([0-9.]+).tar.gz