Date: Sunday, May 10, 2020 @ 10:03:31 Author: felixonmars Revision: 626130
upgpkg: python-dogpile.cache 0.9.1-1 Modified: python-dogpile.cache/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++---------------------------------- 1 file changed, 10 insertions(+), 34 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-10 08:56:00 UTC (rev 626129) +++ PKGBUILD 2020-05-10 10:03:31 UTC (rev 626130) @@ -1,59 +1,35 @@ # Maintainer: Felix Yan <[email protected]> -pkgbase=python-dogpile.cache -pkgname=(python-dogpile.cache python2-dogpile.cache) -pkgver=0.9.0 +pkgname=python-dogpile.cache +pkgver=0.9.1 pkgrel=1 pkgdesc="A caching front-end based on the Dogpile lock" arch=('any') url="https://pypi.python.org/pypi/dogpile.cache" license=('BSD') -makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator') -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') +depends=('python-decorator') +makedepends=('python-setuptools') +checkdepends=('memcached' 'pifpaf' 'redis' 'python-mako' 'python-redis' 'python-pytest' 'python-mock' + 'python-pytest-cov' 'python-pylibmc') source=("https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-$pkgver.tar.gz") -sha512sums=('061fe20d2c26ca9e76a43e0bde687177ca2c7b629803a123462e860858aadaf30837bc68bd0e748b78eb30ef1f5ce766272f91104cb1154de0a7e9c6a2f8c411') +sha512sums=('7d84325dd7ec2d85027472f07cddd51f495b75dc9dbbcbf26bad7aaabfee8c2da99e0c247851282b228528a87e54d98e04d8451a3ca3a571e84a4a2bb33e72f2') -prepare() { - cp -a "dogpile.cache-$pkgver"{,-py2} -} - build() { - cd "$srcdir"/dogpile.cache-$pkgver + cd dogpile.cache-$pkgver python setup.py build - - cd "$srcdir"/dogpile.cache-$pkgver-py2 - python2 setup.py build } check() { - cd "$srcdir"/dogpile.cache-$pkgver + cd 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' - pifpaf --env-prefix DOGPILE run memcached --port 11234 -- python2 -m pytest tests/cache/test_memcached_backend.py - pifpaf --env-prefix DOGPILE run redis --port 11234 -- python2 -m pytest tests/cache/test_redis_backend.py } -package_python-dogpile.cache() { - depends=('python-decorator') - +package() { 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-decorator') - - 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:
