[arch-commits] Commit in python-logilab-common/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Nov 29 00:34:57 UTC 2014


    Date: Saturday, November 29, 2014 @ 01:34:57
  Author: fyan
Revision: 227173

upgpkg: python-logilab-common 0.63.1-1

- upstream new release
- enable tests
- add missing optdepend: six

Modified:
  python-logilab-common/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-28 19:54:53 UTC (rev 227172)
+++ PKGBUILD	2014-11-29 00:34:57 UTC (rev 227173)
@@ -1,26 +1,27 @@
 # $Id$
 # Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Stéphane Gaudreault <stephane at archlinux.org>
 # Contributor: Alexander Fehr <pizzapunk gmail com>
 
 pkgbase=python-logilab-common
 pkgname=('python2-logilab-common' 'python-logilab-common')
-pkgver=0.63.0
+pkgver=0.63.1
 pkgrel=1
 pkgdesc="Useful miscellaneous modules used by Logilab projects"
 arch=('any')
 url="http://www.logilab.org/project/logilab-common"
 license=('LGPL')
-makedepends=('python2' 'python')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-six' 'python2-six' 'python-pytz' 'python2-pytz' 'python2-egenix-mx-base')
 source=("https://pypi.python.org/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz")
-sha1sums=('13493a9fae9c9fdf9e814894fa93ca0bfbbffcbf')
+sha1sums=('c29eb16fdd4974dfb5a568dc661c5dc863834137')
 
-build() {
-  cd "${srcdir}"
-
+prepare() {
   cp -a logilab-common-${pkgver}{,-py3}
+}
 
+build() {
   cd logilab-common-${pkgver}
   python2 setup.py build
 
@@ -28,8 +29,23 @@
   python3 setup.py build
 }
 
+check() {
+  cd logilab-common-${pkgver}
+  # Hack to make it importable at this stage
+  touch build/lib/logilab/__init__.py
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 bin/pytest
+  rm build/lib/logilab/__init__.py
+
+  cd ../logilab-common-${pkgver}-py3
+  touch build/lib/logilab/__init__.py
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python3 bin/pytest
+  rm build/lib/logilab/__init__.py
+}
+
 package_python2-logilab-common() {
   depends=('python2')
+  optdepends=('python2-six: for logilab.common.testlib')
+
   cd "${srcdir}"/logilab-common-${pkgver}
 
   python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
@@ -42,6 +58,8 @@
 
 package_python-logilab-common() {
   depends=('python')
+  optdepends=('python-six: for logilab.common.testlib')
+
   cd "${srcdir}"/logilab-common-${pkgver}-py3
 
   python3 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"


More information about the arch-commits mailing list