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

Felix Yan fyan at archlinux.org
Tue Nov 3 04:00:42 UTC 2015


    Date: Tuesday, November 3, 2015 @ 05:00:41
  Author: fyan
Revision: 145709

upgpkg: python-redis 2.10.5-1

Modified:
  python-redis/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-03 03:55:03 UTC (rev 145708)
+++ PKGBUILD	2015-11-03 04:00:41 UTC (rev 145709)
@@ -6,15 +6,16 @@
 pkgbase=python-redis
 pkgname=('python-redis' 'python2-redis')
 _basename=redis
-pkgver=2.10.3
-pkgrel=2
+pkgver=2.10.5
+pkgrel=1
 pkgdesc='The Python interface to the Redis key-value store'
 arch=('any')
 url="http://github.com/andymccurdy/redis-py"
 license=('MIT')
-makedepends=('python' 'python2')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'redis')
 source=("https://pypi.python.org/packages/source/r/${_basename}/${_basename}-${pkgver}.tar.gz")
-md5sums=('7619221ad0cbd124a5687458ea3f5289')
+md5sums=('3b26c2b9703b4b56b30a1ad508e31083')
 
 prepare() {
   cp -a ${_basename}-${pkgver}{,-py2}
@@ -28,6 +29,22 @@
   python2 setup.py build
 }
 
+check() {
+  _run() {
+    rm -f "$srcdir/redis.pid"
+    redis-server --daemonize yes --pidfile "$srcdir/redis.pid"
+    "$@"
+    kill $(cat "$srcdir/redis.pid")
+    sleep 1 # :/
+  }
+
+  cd ${_basename}-${pkgver}
+  _run py.test
+
+  cd ../${_basename}-${pkgver}-py2
+  _run py.test2
+}
+
 package_python-redis() {
   depends=('python')
 



More information about the arch-commits mailing list