[arch-commits] Commit in python-redis/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Aug 18 06:58:51 UTC 2017
Date: Friday, August 18, 2017 @ 06:58:50
Author: felixonmars
Revision: 252370
archrelease: copy trunk to community-any
Added:
python-redis/repos/community-any/PKGBUILD
(from rev 252369, python-redis/trunk/PKGBUILD)
Deleted:
python-redis/repos/community-any/PKGBUILD
----------+
PKGBUILD | 119 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 55 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-18 06:58:23 UTC (rev 252369)
+++ PKGBUILD 2017-08-18 06:58:50 UTC (rev 252370)
@@ -1,64 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
-# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
-# Contributor: Pierre Gueth <pierre.gueth at gmail.com>
-
-pkgbase=python-redis
-pkgname=('python-redis' 'python2-redis')
-_basename=redis
-pkgver=2.10.5
-pkgrel=2
-pkgdesc='The Python interface to the Redis key-value store'
-arch=('any')
-url="http://github.com/andymccurdy/redis-py"
-license=('MIT')
-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=('3b26c2b9703b4b56b30a1ad508e31083')
-
-prepare() {
- cp -a ${_basename}-${pkgver}{,-py2}
-}
-
-build() {
- cd ${_basename}-${pkgver}
- python setup.py build
-
- cd ../${_basename}-${pkgver}-py2
- 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')
-
- cd ${_basename}-${pkgver}
- python setup.py install --root=${pkgdir}/ --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-redis() {
- depends=('python2')
-
- cd ${_basename}-${pkgver}-py2
- python2 setup.py install --root=${pkgdir}/ --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-redis/repos/community-any/PKGBUILD (from rev 252369, python-redis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-08-18 06:58:50 UTC (rev 252370)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
+# Contributor: Pierre Gueth <pierre.gueth at gmail.com>
+
+pkgbase=python-redis
+pkgname=('python-redis' 'python2-redis')
+pkgver=2.10.6
+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-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock' 'python-pifpaf' 'redis')
+source=("https://pypi.io/packages/source/r/redis/redis-$pkgver.tar.gz")
+sha512sums=('e7df464bc3b26e23f6a0d2d2896306c1e4792b9a2a4ecaea6dd8690ffa17853cc85345f063307295dd3c2da399f7f203f4b21d785f7e073c0501732257419dad')
+
+prepare() {
+ cp -a redis-$pkgver{,-py2}
+}
+
+build() {
+ cd redis-$pkgver
+ python setup.py build
+
+ cd ../redis-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd redis-$pkgver
+ pifpaf run redis py.test
+
+ cd ../redis-$pkgver-py2
+ pifpaf run redis py.test2
+}
+
+package_python-redis() {
+ depends=('python')
+
+ cd redis-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-redis() {
+ depends=('python2')
+
+ cd redis-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list