[Python-modules-commits] r23563 - in packages/python-cffi/trunk (17 files)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Sat Feb 23 22:49:15 UTC 2013
Date: Saturday, February 23, 2013 @ 22:49:12
Author: stefanor
Revision: 23563
[svn-inject] Applying Debian modifications (0.5-1) to trunk
Added:
packages/python-cffi/trunk/debian/
packages/python-cffi/trunk/debian/changelog
packages/python-cffi/trunk/debian/clean
packages/python-cffi/trunk/debian/compat
packages/python-cffi/trunk/debian/control
packages/python-cffi/trunk/debian/copyright
packages/python-cffi/trunk/debian/patches/
packages/python-cffi/trunk/debian/patches/avoid_d_d
packages/python-cffi/trunk/debian/patches/series
packages/python-cffi/trunk/debian/rules
packages/python-cffi/trunk/debian/source/
packages/python-cffi/trunk/debian/source/format
packages/python-cffi/trunk/debian/tests/
packages/python-cffi/trunk/debian/tests/control
packages/python-cffi/trunk/debian/tests/unittests
packages/python-cffi/trunk/debian/tests/unittests3
packages/python-cffi/trunk/debian/watch
Property changes on: packages/python-cffi/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/python-cffi/trunk/debian/changelog
===================================================================
--- packages/python-cffi/trunk/debian/changelog (rev 0)
+++ packages/python-cffi/trunk/debian/changelog 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,5 @@
+python-cffi (0.5-1) UNRELEASED; urgency=low
+
+ * Initial package (Closes: #700084)
+
+ -- Stefano Rivera <stefanor at debian.org> Fri, 08 Feb 2013 15:29:57 +0200
Added: packages/python-cffi/trunk/debian/clean
===================================================================
--- packages/python-cffi/trunk/debian/clean (rev 0)
+++ packages/python-cffi/trunk/debian/clean 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1 @@
+*.egg-info/*
Added: packages/python-cffi/trunk/debian/compat
===================================================================
--- packages/python-cffi/trunk/debian/compat (rev 0)
+++ packages/python-cffi/trunk/debian/compat 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1 @@
+9
Added: packages/python-cffi/trunk/debian/control
===================================================================
--- packages/python-cffi/trunk/debian/control (rev 0)
+++ packages/python-cffi/trunk/debian/control 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,88 @@
+Source: python-cffi
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Stefano Rivera <stefanor at debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ 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://svn.debian.org/python-modules/packages/python-cffi/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/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}
+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}
+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.
Added: packages/python-cffi/trunk/debian/copyright
===================================================================
--- packages/python-cffi/trunk/debian/copyright (rev 0)
+++ packages/python-cffi/trunk/debian/copyright 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,40 @@
+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-2013, Stefano Rivera <stefanor at debian.org>
+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.
Added: packages/python-cffi/trunk/debian/patches/avoid_d_d
===================================================================
--- packages/python-cffi/trunk/debian/patches/avoid_d_d (rev 0)
+++ packages/python-cffi/trunk/debian/patches/avoid_d_d 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,20 @@
+Description: Avoid adding a double _d under debug-builds of Python2
+Author: Stefano Rivera <stefanor at debian.org>
+Last-Update: 2013-02-23
+Forwarded: https://bitbucket.org/stefanor/cffi/commits/6a7602c93197e9a5ed532098323e85b070aa82d7
+
+--- a/cffi/verifier.py
++++ b/cffi/verifier.py
+@@ -72,7 +72,11 @@
+ basename = os.path.basename(self.modulefilename)
+ # kill both the .so extension and the other .'s, as introduced
+ # by Python 3: 'basename.cpython-33m.so'
+- return basename.split('.', 1)[0]
++ basename = basename.split('.', 1)[0]
++ # and the _d added in Python 2 debug builds
++ if basename.endswith('_d'):
++ basename = basename[:-2]
++ return basename
+
+ def get_extension(self):
+ if not self._has_source:
Added: packages/python-cffi/trunk/debian/patches/series
===================================================================
--- packages/python-cffi/trunk/debian/patches/series (rev 0)
+++ packages/python-cffi/trunk/debian/patches/series 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1 @@
+avoid_d_d
Added: packages/python-cffi/trunk/debian/rules
===================================================================
--- packages/python-cffi/trunk/debian/rules (rev 0)
+++ packages/python-cffi/trunk/debian/rules 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+
+PYVERS = $(shell pyversions -vr)
+PY3VERS = $(shell py3versions -vr)
+
+# For py_builddir_sh
+include /usr/share/python/python.mk
+
+%:
+ dh $@ --with python2,python3
+
+override_dh_auto_build:
+ set -e -x; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ python$$py setup.py build; \
+ python$$py-dbg setup.py build; \
+ done
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ set -ex; \
+ export TMPDIR=$(CURDIR)/build/tmp; \
+ mkdir "$$TMPDIR"; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ PYTHONPATH=$(call py_builddir_sh,$$py) py.test-$$py c/ testing/; \
+ PYTHONPATH=$(call py_builddir_sh,$$py-dbg) python$$py-dbg $(shell which py.test) c/ testing/; \
+ done
+endif
+
+override_dh_auto_install:
+ set -e -x; \
+ for py in $(PYVERS); do \
+ python$$py setup.py install --skip-build --root debian/python-cffi --install-layout=deb; \
+ python$$py-dbg setup.py install --skip-build --root debian/python-cffi-dbg --install-layout=deb; \
+ done
+ set -e -x; \
+ for py in $(PY3VERS); do \
+ python$$py setup.py install --skip-build --root debian/python3-cffi --install-layout=deb; \
+ python$$py-dbg setup.py install --skip-build --root debian/python3-cffi-dbg --install-layout=deb; \
+ done
+
+override_dh_auto_clean:
+ rm -rf build
+ find . -name '*.pyc' -delete
+ find . -path '*/__pycache__/*' -delete
+ rm -rf $(wildcard testing/snippets/*/dist testing/snippets/*/build testing/snippets/*/*.egg-info)
+
+override_dh_strip:
+ dh_strip -p python-cffi --dbg-package=python-cffi-dbg
+ dh_strip -p python3-cffi --dbg-package=python3-cffi-dbg
+ dh_strip --remaining-packages
+
+override_dh_clean:
+ dh_clean
+ rm -rf __pycache__
Property changes on: packages/python-cffi/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-cffi/trunk/debian/source/format
===================================================================
--- packages/python-cffi/trunk/debian/source/format (rev 0)
+++ packages/python-cffi/trunk/debian/source/format 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/python-cffi/trunk/debian/tests/control
===================================================================
--- packages/python-cffi/trunk/debian/tests/control (rev 0)
+++ packages/python-cffi/trunk/debian/tests/control 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,19 @@
+Tests: unittests
+Depends:
+ python-all,
+ python-all-dbg,
+ python-cffi,
+ python-cffi-dbg,
+ python-py,
+ python-pytest,
+ python-virtualenv
+
+Tests: unittests3
+Depends:
+ python-virtualenv,
+ python3-all,
+ python3-all-dbg,
+ python3-cffi,
+ python3-cffi-dbg,
+ python3-py,
+ python3-pytest
Added: packages/python-cffi/trunk/debian/tests/unittests
===================================================================
--- packages/python-cffi/trunk/debian/tests/unittests (rev 0)
+++ packages/python-cffi/trunk/debian/tests/unittests 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -efu
+
+pythons="$(pyversions -rv)"
+cp -a c testing "$ADTTMP"
+
+# Not appropriate:
+rm "$ADTTMP"/testing/test_version.py
+
+cd "$ADTTMP"
+for py in $pythons; do
+ py.test-$py c testing
+ python$py-dbg /usr/bin/py.test c testing 2>&1
+done
Property changes on: packages/python-cffi/trunk/debian/tests/unittests
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-cffi/trunk/debian/tests/unittests3
===================================================================
--- packages/python-cffi/trunk/debian/tests/unittests3 (rev 0)
+++ packages/python-cffi/trunk/debian/tests/unittests3 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -efu
+
+pythons="$(py3versions -rv)"
+cp -a c testing "$ADTTMP"
+
+# Not appropriate:
+rm "$ADTTMP"/testing/test_version.py
+
+cd "$ADTTMP"
+for py in $pythons; do
+ py.test-$py c testing
+ python$py-dbg /usr/bin/py.test c testing 2>&1
+done
Property changes on: packages/python-cffi/trunk/debian/tests/unittests3
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-cffi/trunk/debian/watch
===================================================================
--- packages/python-cffi/trunk/debian/watch (rev 0)
+++ packages/python-cffi/trunk/debian/watch 2013-02-23 22:49:12 UTC (rev 23563)
@@ -0,0 +1,3 @@
+version=3
+
+http://pypi.python.org/packages/source/c/cffi/cffi-([0-9.]+).tar.gz
More information about the Python-modules-commits
mailing list