Date: Thursday, October 31, 2019 @ 18:03:42 Author: foutrelis Revision: 366284
archrelease: copy trunk to staging-any Added: python-beaker/repos/staging-any/PKGBUILD (from rev 366283, python-beaker/trunk/PKGBUILD) Deleted: python-beaker/repos/staging-any/PKGBUILD ----------+ PKGBUILD | 134 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-10-31 18:03:38 UTC (rev 366283) +++ PKGBUILD 2019-10-31 18:03:42 UTC (rev 366284) @@ -1,67 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Ionut Biru <ib...@archlinux.org> -# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com > - -pkgbase=python-beaker -pkgname=('python-beaker' 'python2-beaker') -pkgver=1.11.0 -pkgrel=2 -arch=('any') -license=('custom') -pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications" -url="http://beaker.groovie.org/" -makedepends=('python-setuptools' 'python2-setuptools' 'python2-funcsigs') -checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-sqlalchemy' - 'python2-sqlalchemy' 'python-pycryptodome' 'python2-pycryptodome' 'python-coverage' - 'python2-coverage' 'python-webtest' 'python2-webtest' 'python-redis' 'python2-redis' - 'python-pymongo' 'python2-pymongo' 'python-pylibmc' 'python2-pylibmc' 'redis' - 'python-cryptography' 'python2-cryptography' 'python-memcached' 'python2-memcached' - 'memcached' 'pifpaf' 'python-mongomock' 'python2-mongomock') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/bbangert/beaker/archive/$pkgver.tar.gz") -sha512sums=('0eab9ff40314786e0fb2d31a6b932f355680c193ac5c41de442ee5a3f4d5cf62ae1c30f2948f8e2c89c012bad5e4332a5a72be62c9b1cba0b9f2723afe7e9ae3') - -prepare() { - # Use a fake MongoDB for tests - sed -e '/class TestMongoDB/i import mongomock' \ - -e "s|'mongodb://localhost:27017/beaker_testdb'|mongomock.MongoClient('mongodb://localhost:27017/beaker_testdb')|" \ - -i beaker-$pkgver/tests/test_managers/test_ext_mongodb.py - - cp -a beaker-$pkgver{,-py2} - - sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker-$pkgver/beaker/crypto/pbkdf2.py - sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-$pkgver-py2/beaker/crypto/pbkdf2.py -} - -build() { - cd "$srcdir"/beaker-$pkgver - python3 setup.py build - - cd "$srcdir"/beaker-$pkgver-py2 - python2 setup.py build -} - -check() { - # it_IT.UTF-8 is missing in test env - - cd "$srcdir"/beaker-$pkgver - pifpaf run memcached --port 11211 -- pifpaf run redis python setup.py nosetests || warning "Tests failed" - - cd "$srcdir"/beaker-$pkgver-py2 - pifpaf run memcached --port 11211 -- pifpaf run redis python2 setup.py nosetests || warning "Tests failed" -} - -package_python-beaker() { - depends=('python') - - cd beaker-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-beaker/LICENSE -} - -package_python2-beaker() { - depends=('python2-funcsigs') - - cd beaker-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-beaker/LICENSE -} Copied: python-beaker/repos/staging-any/PKGBUILD (from rev 366283, python-beaker/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-10-31 18:03:42 UTC (rev 366284) @@ -0,0 +1,67 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Ionut Biru <ib...@archlinux.org> +# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com > + +pkgbase=python-beaker +pkgname=('python-beaker' 'python2-beaker') +pkgver=1.11.0 +pkgrel=3 +arch=('any') +license=('custom') +pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications" +url="http://beaker.groovie.org/" +makedepends=('python-setuptools' 'python2-setuptools' 'python2-funcsigs') +checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-sqlalchemy' + 'python2-sqlalchemy' 'python-pycryptodome' 'python2-pycryptodome' 'python-coverage' + 'python2-coverage' 'python-webtest' 'python2-webtest' 'python-redis' 'python2-redis' + 'python-pymongo' 'python2-pymongo' 'python-pylibmc' 'python2-pylibmc' 'redis' + 'python-cryptography' 'python2-cryptography' 'python-memcached' 'python2-memcached' + 'memcached' 'pifpaf' 'python-mongomock' 'python2-mongomock') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/bbangert/beaker/archive/$pkgver.tar.gz") +sha512sums=('0eab9ff40314786e0fb2d31a6b932f355680c193ac5c41de442ee5a3f4d5cf62ae1c30f2948f8e2c89c012bad5e4332a5a72be62c9b1cba0b9f2723afe7e9ae3') + +prepare() { + # Use a fake MongoDB for tests + sed -e '/class TestMongoDB/i import mongomock' \ + -e "s|'mongodb://localhost:27017/beaker_testdb'|mongomock.MongoClient('mongodb://localhost:27017/beaker_testdb')|" \ + -i beaker-$pkgver/tests/test_managers/test_ext_mongodb.py + + cp -a beaker-$pkgver{,-py2} + + sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker-$pkgver/beaker/crypto/pbkdf2.py + sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-$pkgver-py2/beaker/crypto/pbkdf2.py +} + +build() { + cd "$srcdir"/beaker-$pkgver + python3 setup.py build + + cd "$srcdir"/beaker-$pkgver-py2 + python2 setup.py build +} + +check() { + # it_IT.UTF-8 is missing in test env + + cd "$srcdir"/beaker-$pkgver + pifpaf run memcached --port 11211 -- pifpaf run redis python setup.py nosetests || warning "Tests failed" + + cd "$srcdir"/beaker-$pkgver-py2 + pifpaf run memcached --port 11211 -- pifpaf run redis python2 setup.py nosetests || warning "Tests failed" +} + +package_python-beaker() { + depends=('python') + + cd beaker-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-beaker/LICENSE +} + +package_python2-beaker() { + depends=('python2-funcsigs') + + cd beaker-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-beaker/LICENSE +}