Date: Tuesday, September 9, 2014 @ 13:28:00 Author: fyan Revision: 118710
archrelease: copy trunk to community-any Added: python-celery/repos/community-any/ python-celery/repos/community-any/PKGBUILD (from rev 118709, python-celery/trunk/PKGBUILD) python-celery/repos/community-any/celery.tmpfiles.d (from rev 118709, python-celery/trunk/celery.tmpfiles.d) python-celery/repos/community-any/celery2.tmpfiles.d (from rev 118709, python-celery/trunk/celery2.tmpfiles.d) python-celery/repos/community-any/celery2@.service (from rev 118709, python-celery/trunk/celery2@.service) python-celery/repos/community-any/celery@.service (from rev 118709, python-celery/trunk/celery@.service) python-celery/repos/community-any/python-celery.install (from rev 118709, python-celery/trunk/python-celery.install) python-celery/repos/community-any/python2-celery.install (from rev 118709, python-celery/trunk/python2-celery.install) ------------------------+ PKGBUILD | 97 +++++++++++++++++++++++++++++++++++++++++++++++ celery.tmpfiles.d | 2 celery2.tmpfiles.d | 2 celery2@.service | 15 +++++++ celery@.service | 15 +++++++ python-celery.install | 3 + python2-celery.install | 3 + 7 files changed, 137 insertions(+) Copied: python-celery/repos/community-any/PKGBUILD (from rev 118709, python-celery/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,97 @@ +# $Id$ +# Maintainer: Marcin Kolenda <marcinkolenda...@gmail.com> +# Contributor: Valentin Haloiu <vially.ichb+...@gmail.com> +# Contributor: Lukas Linhart <b...@almad.net> +# Contributor: Marco Elver <marco.elver AT gmail.com> +# Contributor: apkawa <apk...@gmail.com> + +pkgbase=python-celery +pkgname=('python-celery' 'python2-celery') +pkgver=3.1.14 +pkgrel=1 +pkgdesc='Distributed Asynchronous Task Queue' +arch=('any') +url='http://celeryproject.org/' +license=('BSD') +makedepends=('python-setuptools' 'python2-setuptools' 'python-kombu' 'python2-kombu' 'python-billiard' 'python2-billiard' + 'python-pytz' 'python2-pytz') +checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-pyopenssl' 'python2-pyopenssl' 'python2-gevent' + 'python2-librabbitmq' 'python-pymongo' 'python2-pymongo' 'python-msgpack' 'python2-msgpack' 'python-pyro' + 'python2-pyro' 'python-redis' 'python2-redis' 'python-sqlalchemy' 'python2-sqlalchemy' 'python-boto' 'python2-boto' + 'python-yaml' 'python2-yaml' 'python-pyzmq' 'python2-pyzmq') +source=("https://pypi.python.org/packages/source/c/celery/celery-$pkgver.tar.gz" + celery@.service celery2@.service python-celery.install python2-celery.install celery.tmpfiles.d celery2.tmpfiles.d) +options=('!emptydirs') +sha256sums=('c6a72c73046560f58076e83cda6fb63b778bb379ffe07e01655a38e2f54c373c' + '2c3b6eb4ebcc02f6748141d3dd1ebb64128b7b082724ebc15141144e2e40ebff' + 'f17edc445e555ae2a6b6c4124e1ad45e89a8f5c1408f4b629d939eeb8b1ce0d9' + 'b2744f019e11d57df825d9a970099a678ec1fffc5579ab52fb2270ec4aba741a' + '19cfffc0447ec5046b106bc33cc8422942b82f9339971405398835d5d8079f00' + 'c60185a7e2192dfd98d41cbea6ef0f8ed24cafd79aeae6f0792360fa6ddf6f46' + 'fdb55a9b2ee2b7e0b55ffb576ebcd14d846cdfdb2c5131a68c64275c391f6aa5') + +prepare() { + cp -a celery-$pkgver{,-py2} +} + +build() { + cd "$srcdir/celery-$pkgver" + python setup.py build + + cd "$srcdir/celery-$pkgver-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/celery-$pkgver" + nosetests3 || warning "Tests failed" + + cd "$srcdir/celery-$pkgver-py2" + nosetests2 +} + +package_python-celery() { + depends=('python' 'python-kombu' 'python-billiard' 'python-pytz') + optdepends=('python-pyopenssl: for celery.security' + 'python-pymongo: for celery.backends.mongodb' + 'python-msgpack: for using the msgpack serializer' + 'python-pyro: for using Pyro4 message transport' + 'python-redis: for celery.backends.redis' + 'python-sqlalchemy: for celery.backends.database' + 'python-boto: for SQS transport' + 'python-yaml: for using the yaml serializer' + 'python-pyzmq: for using ZeroMQ transport') + install=python-celery.install + + cd "$srcdir/celery-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "$srcdir/celery@.service" "$pkgdir/usr/lib/systemd/system/celery@.service" + install -Dm644 "$srcdir/celery.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/celery.conf" +} + +package_python2-celery() { + depends=('python2' 'python2-kombu' 'python2-billiard' 'python2-pytz') + optdepends=('python2-pyopenssl: for celery.security' + 'python2-gevent: for celery.concurrency.gevent' + 'python2-librabbitmq: optimized client for RabbitMQ' + 'python2-pymongo: for celery.backends.mongodb' + 'python2-msgpack: for using the msgpack serializer' + 'python2-pyro: for using Pyro4 message transport' + 'python2-redis: for celery.backends.redis' + 'python2-sqlalchemy: for celery.backends.database' + 'python2-boto: for SQS transport' + 'python2-yaml: for using the yaml serializer' + 'python2-pyzmq: for using ZeroMQ transport') + install=python2-celery.install + + cd "$srcdir/celery-$pkgver-py2" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "$srcdir/celery2@.service" "$pkgdir/usr/lib/systemd/system/celery2@.service" + install -Dm644 "$srcdir/celery2.tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/celery2.conf" + + for file in celery celerybeat celeryd celeryd-multi; do + mv "$pkgdir/usr/bin/$file"{,2} + done +} Copied: python-celery/repos/community-any/celery.tmpfiles.d (from rev 118709, python-celery/trunk/celery.tmpfiles.d) =================================================================== --- community-any/celery.tmpfiles.d (rev 0) +++ community-any/celery.tmpfiles.d 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,2 @@ +d /run/celery 0755 - - - - +d /var/log/celery 0755 - - - - Copied: python-celery/repos/community-any/celery2.tmpfiles.d (from rev 118709, python-celery/trunk/celery2.tmpfiles.d) =================================================================== --- community-any/celery2.tmpfiles.d (rev 0) +++ community-any/celery2.tmpfiles.d 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,2 @@ +d /run/celery2 0755 - - - - +d /var/log/celery2 0755 - - - - Copied: python-celery/repos/community-any/celery2@.service (from rev 118709, python-celery/trunk/celery2@.service) =================================================================== --- community-any/celery2@.service (rev 0) +++ community-any/celery2@.service 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,15 @@ +[Unit] +Description=Celery Nodes Daemon +After=network.target + +[Service] +Type=oneshot +EnvironmentFile=/etc/celery/%I.conf +ExecStart=/usr/bin/celery2 multi start $CELERYD_NODES --pidfile=/run/celery2/%n.pid --logfile=/var/log/celery2/%n.log --loglevel="INFO" $CELERYD_OPTS +ExecStop=/usr/bin/celery2 multi stopwait $CELERYD_NODES --pidfile=/run/celery2/%n.pid +ExecReload=/usr/bin/celery2 multi restart $CELERYD_NODES --pidfile=/run/celery2/%n.pid --logfile=/var/log/celery2/%n.log --loglevel="INFO" $CELERYD_OPTS +KillMode=control-group +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target Copied: python-celery/repos/community-any/celery@.service (from rev 118709, python-celery/trunk/celery@.service) =================================================================== --- community-any/celery@.service (rev 0) +++ community-any/celery@.service 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,15 @@ +[Unit] +Description=Celery Nodes Daemon +After=network.target + +[Service] +Type=oneshot +EnvironmentFile=/etc/celery/%I.conf +ExecStart=/usr/bin/celery multi start $CELERYD_NODES --pidfile=/run/celery/%n.pid --logfile=/var/log/celery/%n.log --loglevel="INFO" $CELERYD_OPTS +ExecStop=/usr/bin/celery multi stopwait $CELERYD_NODES --pidfile=/run/celery/%n.pid +ExecReload=/usr/bin/celery multi restart $CELERYD_NODES --pidfile=/run/celery/%n.pid --logfile=/var/log/celery/%n.log --loglevel="INFO" $CELERYD_OPTS +KillMode=control-group +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target Copied: python-celery/repos/community-any/python-celery.install (from rev 118709, python-celery/trunk/python-celery.install) =================================================================== --- community-any/python-celery.install (rev 0) +++ community-any/python-celery.install 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,3 @@ +post_install(){ + systemd-tmpfiles --create /usr/lib/tmpfiles.d/celery.conf +} Copied: python-celery/repos/community-any/python2-celery.install (from rev 118709, python-celery/trunk/python2-celery.install) =================================================================== --- community-any/python2-celery.install (rev 0) +++ community-any/python2-celery.install 2014-09-09 11:28:00 UTC (rev 118710) @@ -0,0 +1,3 @@ +post_install(){ + systemd-tmpfiles --create /usr/lib/tmpfiles.d/celery2.conf +}