[arch-commits] Commit in python-cffi/repos (10 files)
Felix Yan
fyan at archlinux.org
Sun May 31 10:21:37 UTC 2015
Date: Sunday, May 31, 2015 @ 12:21:36
Author: fyan
Revision: 239957
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
python-cffi/repos/extra-i686/PKGBUILD
(from rev 239956, python-cffi/trunk/PKGBUILD)
python-cffi/repos/extra-i686/rebuild.list
(from rev 239956, python-cffi/trunk/rebuild.list)
python-cffi/repos/extra-x86_64/PKGBUILD
(from rev 239956, python-cffi/trunk/PKGBUILD)
python-cffi/repos/extra-x86_64/rebuild.list
(from rev 239956, python-cffi/trunk/rebuild.list)
Deleted:
python-cffi/repos/extra-i686/PKGBUILD
python-cffi/repos/extra-i686/gcc-5.1.patch
python-cffi/repos/extra-i686/rebuild.list
python-cffi/repos/extra-x86_64/PKGBUILD
python-cffi/repos/extra-x86_64/gcc-5.1.patch
python-cffi/repos/extra-x86_64/rebuild.list
----------------------------+
/PKGBUILD | 106 +++++++++++++++++++++++++++++++++++++++++++
/rebuild.list | 2
extra-i686/PKGBUILD | 58 -----------------------
extra-i686/gcc-5.1.patch | 55 ----------------------
extra-i686/rebuild.list | 1
extra-x86_64/PKGBUILD | 58 -----------------------
extra-x86_64/gcc-5.1.patch | 55 ----------------------
extra-x86_64/rebuild.list | 1
8 files changed, 108 insertions(+), 228 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-i686/PKGBUILD 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: lilydjwg <lilydjwg at gmail.com>
-
-_name=cffi
-pkgbase=python-$_name
-pkgname=(python-$_name python2-$_name)
-pkgver=1.0.3
-pkgrel=1
-pkgdesc="Foreign Function Interface for Python calling C code"
-arch=('i686' 'x86_64')
-url="http://cffi.readthedocs.org/"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz"
- gcc-5.1.patch)
-sha512sums=('a5f2b0ab356fe51b1d9f3f2e4bfadbc11bb10ec7f9458c019f3707b738dded1953723f797a8b37ed768cd14fe86f674d07d2cd5ce166406abaa1a68b443293b1'
- '5dec42879a0ec443d6546594f4f78803b2aa83a5c02916864dca1c8c7c86bb69ee04269d5bce07ccfce750c7500acdc2fc037019e181321dfb7bf539bf74b91e')
-
-prepare() {
- # https://bitbucket.org/cffi/cffi/issue/195/test-failures-with-cffi-102
- (cd $_name-$pkgver; patch -p1 -i ../gcc-5.1.patch)
-
- cp -a $_name-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir/$_name-$pkgver"
- python3 setup.py build
-
- cd "$srcdir/$_name-$pkgver-py2"
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir/$_name-$pkgver"
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.4:$PYTHONPATH" py.test
-
- cd "$srcdir/$_name-$pkgver-py2"
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
-}
-
-package_python-cffi() {
- depends=('python' 'python-pycparser')
-
- cd "$srcdir/$_name-$pkgver"
- python3 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-cffi() {
- depends=('python2' 'python2-pycparser')
-
- cd "$srcdir/$_name-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-cffi/repos/extra-i686/PKGBUILD (from rev 239956, python-cffi/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2015-05-31 10:21:36 UTC (rev 239957)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('i686' 'x86_64')
+url="http://cffi.readthedocs.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz")
+sha512sums=('c9725869ffb8a10b83484b4b90ee02c66aa38a439334a404e043452de894f97f37050d7ba2467531820a6fdc7ee93a529078734e22b3637c5116d7d6d4b86ca0')
+
+prepare() {
+ cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_name-$pkgver"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.4:$PYTHONPATH" py.test
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+}
+
+package_python-cffi() {
+ depends=('python' 'python-pycparser')
+
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+ depends=('python2' 'python2-pycparser')
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Deleted: extra-i686/gcc-5.1.patch
===================================================================
--- extra-i686/gcc-5.1.patch 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-i686/gcc-5.1.patch 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1,55 +0,0 @@
-# HG changeset patch
-# User Armin Rigo <arigo at tunes.org>
-# Date 1432628446 -7200
-# Node ID 588e46d0032954479cb62db1784d554c0b4d6107
-# Parent 4e69fd3efc25128d62eef5eea8a52fbfea166ebf
-Silence some warnings with gcc 5.1: if T is a type smaller than 'int',
-then the C expression "condition ? (T)x : (T)y" is typed not as a T, but
-as a larger 'int' --- which means there was an implicit cast from the
-final 'int' to the T-typed target of the assignment whenever this macro
-was used.
-
-diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
---- a/cffi/_cffi_include.h
-+++ b/cffi/_cffi_include.h
-@@ -82,7 +82,8 @@
- PyLong_FromLongLong((long long)x)))
-
- #define _cffi_to_c_int(o, type) \
-- (sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
-+ ((type)( \
-+ sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
- : (type)_cffi_to_c_i8(o)) : \
- sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o) \
- : (type)_cffi_to_c_i16(o)) : \
-@@ -90,7 +91,7 @@
- : (type)_cffi_to_c_i32(o)) : \
- sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o) \
- : (type)_cffi_to_c_i64(o)) : \
-- (Py_FatalError("unsupported size for type " #type), (type)0))
-+ (Py_FatalError("unsupported size for type " #type), (type)0)))
-
- #define _cffi_to_c_i8 \
- ((int(*)(PyObject *))_cffi_exports[1])
-diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
---- a/cffi/vengine_cpy.py
-+++ b/cffi/vengine_cpy.py
-@@ -886,7 +886,8 @@
- PyLong_FromLongLong((long long)x)))
-
- #define _cffi_to_c_int(o, type) \
-- (sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
-+ ((type)( \
-+ sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
- : (type)_cffi_to_c_i8(o)) : \
- sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o) \
- : (type)_cffi_to_c_i16(o)) : \
-@@ -894,7 +895,7 @@
- : (type)_cffi_to_c_i32(o)) : \
- sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o) \
- : (type)_cffi_to_c_i64(o)) : \
-- (Py_FatalError("unsupported size for type " #type), (type)0))
-+ (Py_FatalError("unsupported size for type " #type), (type)0)))
-
- #define _cffi_to_c_i8 \
- ((int(*)(PyObject *))_cffi_exports[1])
Deleted: extra-i686/rebuild.list
===================================================================
--- extra-i686/rebuild.list 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-i686/rebuild.list 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1 +0,0 @@
-python-pygit2
Copied: python-cffi/repos/extra-i686/rebuild.list (from rev 239956, python-cffi/trunk/rebuild.list)
===================================================================
--- extra-i686/rebuild.list (rev 0)
+++ extra-i686/rebuild.list 2015-05-31 10:21:36 UTC (rev 239957)
@@ -0,0 +1 @@
+python-pygit2
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-x86_64/PKGBUILD 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: lilydjwg <lilydjwg at gmail.com>
-
-_name=cffi
-pkgbase=python-$_name
-pkgname=(python-$_name python2-$_name)
-pkgver=1.0.3
-pkgrel=1
-pkgdesc="Foreign Function Interface for Python calling C code"
-arch=('i686' 'x86_64')
-url="http://cffi.readthedocs.org/"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz"
- gcc-5.1.patch)
-sha512sums=('a5f2b0ab356fe51b1d9f3f2e4bfadbc11bb10ec7f9458c019f3707b738dded1953723f797a8b37ed768cd14fe86f674d07d2cd5ce166406abaa1a68b443293b1'
- '5dec42879a0ec443d6546594f4f78803b2aa83a5c02916864dca1c8c7c86bb69ee04269d5bce07ccfce750c7500acdc2fc037019e181321dfb7bf539bf74b91e')
-
-prepare() {
- # https://bitbucket.org/cffi/cffi/issue/195/test-failures-with-cffi-102
- (cd $_name-$pkgver; patch -p1 -i ../gcc-5.1.patch)
-
- cp -a $_name-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir/$_name-$pkgver"
- python3 setup.py build
-
- cd "$srcdir/$_name-$pkgver-py2"
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir/$_name-$pkgver"
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.4:$PYTHONPATH" py.test
-
- cd "$srcdir/$_name-$pkgver-py2"
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
-}
-
-package_python-cffi() {
- depends=('python' 'python-pycparser')
-
- cd "$srcdir/$_name-$pkgver"
- python3 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-cffi() {
- depends=('python2' 'python2-pycparser')
-
- cd "$srcdir/$_name-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-cffi/repos/extra-x86_64/PKGBUILD (from rev 239956, python-cffi/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2015-05-31 10:21:36 UTC (rev 239957)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python-$_name python2-$_name)
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('i686' 'x86_64')
+url="http://cffi.readthedocs.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycparser' 'python2-pycparser')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/c/${_name}/${_name}-$pkgver.tar.gz")
+sha512sums=('c9725869ffb8a10b83484b4b90ee02c66aa38a439334a404e043452de894f97f37050d7ba2467531820a6fdc7ee93a529078734e22b3637c5116d7d6d4b86ca0')
+
+prepare() {
+ cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/$_name-$pkgver"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.4:$PYTHONPATH" py.test
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+}
+
+package_python-cffi() {
+ depends=('python' 'python-pycparser')
+
+ cd "$srcdir/$_name-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-cffi() {
+ depends=('python2' 'python2-pycparser')
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Deleted: extra-x86_64/gcc-5.1.patch
===================================================================
--- extra-x86_64/gcc-5.1.patch 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-x86_64/gcc-5.1.patch 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1,55 +0,0 @@
-# HG changeset patch
-# User Armin Rigo <arigo at tunes.org>
-# Date 1432628446 -7200
-# Node ID 588e46d0032954479cb62db1784d554c0b4d6107
-# Parent 4e69fd3efc25128d62eef5eea8a52fbfea166ebf
-Silence some warnings with gcc 5.1: if T is a type smaller than 'int',
-then the C expression "condition ? (T)x : (T)y" is typed not as a T, but
-as a larger 'int' --- which means there was an implicit cast from the
-final 'int' to the T-typed target of the assignment whenever this macro
-was used.
-
-diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h
---- a/cffi/_cffi_include.h
-+++ b/cffi/_cffi_include.h
-@@ -82,7 +82,8 @@
- PyLong_FromLongLong((long long)x)))
-
- #define _cffi_to_c_int(o, type) \
-- (sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
-+ ((type)( \
-+ sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
- : (type)_cffi_to_c_i8(o)) : \
- sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o) \
- : (type)_cffi_to_c_i16(o)) : \
-@@ -90,7 +91,7 @@
- : (type)_cffi_to_c_i32(o)) : \
- sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o) \
- : (type)_cffi_to_c_i64(o)) : \
-- (Py_FatalError("unsupported size for type " #type), (type)0))
-+ (Py_FatalError("unsupported size for type " #type), (type)0)))
-
- #define _cffi_to_c_i8 \
- ((int(*)(PyObject *))_cffi_exports[1])
-diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
---- a/cffi/vengine_cpy.py
-+++ b/cffi/vengine_cpy.py
-@@ -886,7 +886,8 @@
- PyLong_FromLongLong((long long)x)))
-
- #define _cffi_to_c_int(o, type) \
-- (sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
-+ ((type)( \
-+ sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o) \
- : (type)_cffi_to_c_i8(o)) : \
- sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o) \
- : (type)_cffi_to_c_i16(o)) : \
-@@ -894,7 +895,7 @@
- : (type)_cffi_to_c_i32(o)) : \
- sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o) \
- : (type)_cffi_to_c_i64(o)) : \
-- (Py_FatalError("unsupported size for type " #type), (type)0))
-+ (Py_FatalError("unsupported size for type " #type), (type)0)))
-
- #define _cffi_to_c_i8 \
- ((int(*)(PyObject *))_cffi_exports[1])
Deleted: extra-x86_64/rebuild.list
===================================================================
--- extra-x86_64/rebuild.list 2015-05-31 10:21:04 UTC (rev 239956)
+++ extra-x86_64/rebuild.list 2015-05-31 10:21:36 UTC (rev 239957)
@@ -1 +0,0 @@
-python-pygit2
Copied: python-cffi/repos/extra-x86_64/rebuild.list (from rev 239956, python-cffi/trunk/rebuild.list)
===================================================================
--- extra-x86_64/rebuild.list (rev 0)
+++ extra-x86_64/rebuild.list 2015-05-31 10:21:36 UTC (rev 239957)
@@ -0,0 +1 @@
+python-pygit2
More information about the arch-commits
mailing list