[arch-commits] Commit in python-dogpile.cache/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Jul 18 02:00:51 UTC 2018


    Date: Wednesday, July 18, 2018 @ 02:00:51
  Author: foutrelis
Revision: 361221

archrelease: copy trunk to community-staging-any

Added:
  python-dogpile.cache/repos/community-staging-any/
  python-dogpile.cache/repos/community-staging-any/PKGBUILD
    (from rev 361220, python-dogpile.cache/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: python-dogpile.cache/repos/community-staging-any/PKGBUILD (from rev 361220, python-dogpile.cache/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 02:00:51 UTC (rev 361221)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-dogpile.cache
+pkgname=(python-dogpile.cache python2-dogpile.cache)
+pkgver=0.6.6
+pkgrel=2
+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')
+checkdepends=('memcached' 'redis' 'python-mako' 'python2-mako' 'python-redis' 'python2-redis'
+              'python2-memcached' 'python-pytest-runner' 'python2-pytest-runner' 'python-mock'
+              'python2-mock' 'python-pytest-cov' 'python2-pytest-cov' 'python-pylibmc'
+              'python2-pylibmc' 'pifpaf' 'python2-pifpaf')
+source=("https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-$pkgver.tar.gz")
+sha512sums=('d3d7bc21ede95ddab08c337558aa08fc8709126c286857b0e77bb0fb98c3a10131786cf826dd956ed5dc11447d0d07679b2bbd403ae2b2cf259835566757464b')
+
+prepare() {
+  cp -a "dogpile.cache-$pkgver"{,-py2}
+}
+
+build() {
+  cd "$srcdir"/dogpile.cache-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/dogpile.cache-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  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 "$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-setuptools')
+
+  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-setuptools')
+
+  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:



More information about the arch-commits mailing list