[arch-commits] Commit in python-dogpile.cache/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Jun 29 03:45:42 UTC 2016


    Date: Wednesday, June 29, 2016 @ 03:45:41
  Author: felixonmars
Revision: 181582

upgpkg: python-dogpile.cache 0.6.1-1

Modified:
  python-dogpile.cache/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |   57 ++++++++++++++++++++++++++-------------------------------
 1 file changed, 26 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-29 03:40:45 UTC (rev 181581)
+++ PKGBUILD	2016-06-29 03:45:41 UTC (rev 181582)
@@ -1,65 +1,60 @@
-# $Id: PKGBUILD 138808 2015-08-27 08:24:22Z fyan $
+# $Id$
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgbase=python-dogpile.cache
 pkgname=(python-dogpile.cache python2-dogpile.cache)
-_pypiname=dogpile.cache
-pkgver=0.5.7
-pkgrel=2
+pkgver=0.6.1
+pkgrel=1
 pkgdesc="A caching front-end based on the Dogpile lock"
 arch=('any')
 url="http://pypi.python.org/pypi/dogpile.cache"
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-dogpile.core' 'python2-dogpile.core')
+makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-mako' 'python2-mako' 'python-redis' 'python2-redis' 'python2-memcached'
               'memcached' 'redis' 'python-pytest-runner' 'python2-pytest-runner'
               'python-mock' 'python2-mock' 'python-pytest-cov' 'python2-pytest-cov'
-              'python-pylibmc' 'python2-pylibmc')
-source=("http://pypi.python.org/packages/source/d/$_pypiname/$_pypiname-$pkgver.tar.gz")
-md5sums=('3e58ce41af574aab41d78e9c4190f194')
+              'python-pylibmc' 'python2-pylibmc' 'python-pifpaf' 'python2-pifpaf')
+source=("https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-$pkgver.tar.gz")
+md5sums=('35d7fb30f22bbd0685763d894dd079a9')
 
 prepare() {
-  cp -a "$_pypiname-$pkgver"{,-py2}
+  cp -a "dogpile.cache-$pkgver"{,-py2}
 }
 
 build() {
-  cd $_pypiname-$pkgver
+  cd "$srcdir"/dogpile.cache-$pkgver
   python setup.py build
 
-  cd ../$_pypiname-$pkgver-py2
+  cd "$srcdir"/dogpile.cache-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  _run() {
-    rm -f "$srcdir/memcached.pid" "$srcdir/redis.pid"
-    memcached -d -P "$srcdir/memcached.pid"
-    redis-server --daemonize yes --pidfile "$srcdir/redis.pid"
-    "$@"
-    kill $(cat "$srcdir/memcached.pid") $(cat "$srcdir/redis.pid")
-  }
+  cd "$srcdir"/dogpile.cache-$pkgver
+  python -m pytest -k 'not test_memcached_backend and not test_redis_backend'
+  pifpaf --env-prefix DOGPILE run memcached --port 11234 -- python -m pytest tests/cache/test_memcached_backend.py
+  pifpaf --env-prefix DOGPILE run redis --port 11234 -- python -m pytest tests/cache/test_redis_backend.py
 
-  cd $_pypiname-$pkgver
-  _run python setup.py ptr
-
-  cd ../$_pypiname-$pkgver-py2
-  _run python2 setup.py ptr
+  cd "$srcdir"/dogpile.cache-$pkgver-py2
+  python2 -m pytest -k 'not test_memcached_backend and not test_redis_backend'
+  pifpaf2 --env-prefix DOGPILE run memcached --port 11234 -- python2 -m pytest tests/cache/test_memcached_backend.py
+  pifpaf2 --env-prefix DOGPILE run redis --port 11234 -- python2 -m pytest tests/cache/test_redis_backend.py
 }
 
 package_python-dogpile.cache() {
-  depends=('python-dogpile.core' 'python-setuptools')
+  depends=('python-setuptools')
 
-  cd "$srcdir/$_pypiname-$pkgver"
-  python setup.py install --root="$pkgdir/" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd dogpile.cache-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-dogpile.cache() {
-  depends=('python2-dogpile.core' 'python2-setuptools')
+  depends=('python2-setuptools')
 
-  cd "$srcdir/$_pypiname-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir/" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd dogpile.cache-$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:


Property changes on: python-dogpile.cache/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list