[arch-commits] Commit in python-celery/repos (6 files)

Felix Yan felixonmars at archlinux.org
Tue May 22 17:30:51 UTC 2018


    Date: Tuesday, May 22, 2018 @ 17:30:50
  Author: felixonmars
Revision: 327684

archrelease: copy trunk to community-testing-any

Added:
  python-celery/repos/community-testing-any/
  python-celery/repos/community-testing-any/PKGBUILD
    (from rev 327683, python-celery/trunk/PKGBUILD)
  python-celery/repos/community-testing-any/celery.tmpfiles.d
    (from rev 327683, python-celery/trunk/celery.tmpfiles.d)
  python-celery/repos/community-testing-any/celery2.tmpfiles.d
    (from rev 327683, python-celery/trunk/celery2.tmpfiles.d)
  python-celery/repos/community-testing-any/celery2 at .service
    (from rev 327683, python-celery/trunk/celery2 at .service)
  python-celery/repos/community-testing-any/celery at .service
    (from rev 327683, python-celery/trunk/celery at .service)

--------------------+
 PKGBUILD           |   98 +++++++++++++++++++++++++++++++++++++++++++++++++++
 celery.tmpfiles.d  |    2 +
 celery2.tmpfiles.d |    2 +
 celery2 at .service   |   15 +++++++
 celery at .service    |   15 +++++++
 5 files changed, 132 insertions(+)

Copied: python-celery/repos/community-testing-any/PKGBUILD (from rev 327683, python-celery/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-05-22 17:30:50 UTC (rev 327684)
@@ -0,0 +1,98 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Marcin Kolenda <marcinkolenda419 at gmail.com>
+# Contributor: Valentin Haloiu <vially.ichb+aur at gmail.com>
+# Contributor: Lukas Linhart <bugs at almad.net>
+# Contributor: Marco Elver <marco.elver AT gmail.com>
+# Contributor: apkawa <apkawa at gmail.com>
+
+pkgbase=python-celery
+pkgname=('python-celery' 'python2-celery')
+pkgver=4.1.1
+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-pytest-runner' 'python2-pytest-runner' 'python-case' 'python2-case'
+              'python-pyopenssl' 'python2-pyopenssl' 'python-gevent' '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' 'python-eventlet' 'python2-eventlet')
+source=("https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
+        celery at .service celery2 at .service
+        celery.tmpfiles.d celery2.tmpfiles.d)
+options=('!emptydirs')
+sha512sums=('035178eba9a307470a29ee9881d7935b8c1d490333188da029c597bade107cbcbb5e70dc851f918d1dac73edf848b9be68dde7e648e5265dc5aa0d1b32019d1d'
+            '3c6c9dbdacca2de12d49c03526b34797fd867c14d04115af0d1fda64d2848a5d3f64ceb6d284be319a81d932dc86e69c157b6f5f859f2fa213fc2f43a6052c65'
+            '1227803e56d5ea7879e097609b8f85633d6c0af4fa3607b98b4f30ffad093b0f3c3e7c54d965f44e954b6d9642a08e767836a9b837e225772d61dffa2042577c'
+            '67279b75c3b44d065811c9c90aee006296164000912d5bb97c74956b26ee4ad4f0847e846052a896d379848b869c849300367e676d3f689cf29e3a0c7ae5310b'
+            'ffeb86b07440de7943343d5a9348980a45d414f42dd29fd78f70e3680600e5dfb6a3a48748746e3af00f42aad9ba1cd8efeb8b2e81e86fb6febde16429b51399')
+
+prepare() {
+  # sed -i 's/,<3.3//' celery-$pkgver/requirements/test.txt
+  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
+  python setup.py pytest
+
+  cd "$srcdir"/celery-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-celery() {
+  depends=('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')
+
+  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 at .service "$pkgdir"/usr/lib/systemd/system/celery at .service
+  install -Dm644 "$srcdir"/celery.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/celery.conf
+}
+
+package_python2-celery() {
+  depends=('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')
+
+  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 at .service "$pkgdir"/usr/lib/systemd/system/celery2 at .service
+  install -Dm644 "$srcdir"/celery2.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/celery2.conf
+
+  for _exe in "$pkgdir"/usr/bin/*; do
+    mv "$_exe"{,2}
+  done
+}

Copied: python-celery/repos/community-testing-any/celery.tmpfiles.d (from rev 327683, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-testing-any/celery.tmpfiles.d	                        (rev 0)
+++ community-testing-any/celery.tmpfiles.d	2018-05-22 17:30:50 UTC (rev 327684)
@@ -0,0 +1,2 @@
+d /run/celery 0755 - - - -
+d /var/log/celery 0755 - - - -

Copied: python-celery/repos/community-testing-any/celery2.tmpfiles.d (from rev 327683, python-celery/trunk/celery2.tmpfiles.d)
===================================================================
--- community-testing-any/celery2.tmpfiles.d	                        (rev 0)
+++ community-testing-any/celery2.tmpfiles.d	2018-05-22 17:30:50 UTC (rev 327684)
@@ -0,0 +1,2 @@
+d /run/celery2 0755 - - - -
+d /var/log/celery2 0755 - - - -

Copied: python-celery/repos/community-testing-any/celery2 at .service (from rev 327683, python-celery/trunk/celery2 at .service)
===================================================================
--- community-testing-any/celery2 at .service	                        (rev 0)
+++ community-testing-any/celery2 at .service	2018-05-22 17:30:50 UTC (rev 327684)
@@ -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-testing-any/celery at .service (from rev 327683, python-celery/trunk/celery at .service)
===================================================================
--- community-testing-any/celery at .service	                        (rev 0)
+++ community-testing-any/celery at .service	2018-05-22 17:30:50 UTC (rev 327684)
@@ -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



More information about the arch-commits mailing list