[arch-commits] Commit in python-celery/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:53:50 UTC 2019
Date: Saturday, October 26, 2019 @ 20:53:49
Author: felixonmars
Revision: 520659
archrelease: copy trunk to community-staging-any
Added:
python-celery/repos/community-staging-any/
python-celery/repos/community-staging-any/PKGBUILD
(from rev 520654, python-celery/trunk/PKGBUILD)
python-celery/repos/community-staging-any/celery.tmpfiles.d
(from rev 520656, python-celery/trunk/celery.tmpfiles.d)
python-celery/repos/community-staging-any/celery at .service
(from rev 520656, python-celery/trunk/celery at .service)
-------------------+
PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++
celery.tmpfiles.d | 2 +
celery at .service | 15 ++++++++++++
3 files changed, 82 insertions(+)
Copied: python-celery/repos/community-staging-any/PKGBUILD (from rev 520654, python-celery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:53:49 UTC (rev 520659)
@@ -0,0 +1,65 @@
+# 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>
+
+pkgname=python-celery
+pkgver=4.3.0
+pkgrel=3
+pkgdesc='Distributed Asynchronous Task Queue'
+arch=('any')
+url='http://celeryproject.org/'
+license=('BSD')
+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')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-case' 'python-pyopenssl'
+ 'python-gevent' 'python-pymongo' 'python-msgpack' 'python-pyro' 'python-redis'
+ 'python-sqlalchemy' 'python-boto' 'python-yaml' 'python-pyzmq' 'python-eventlet'
+ 'python-moto')
+source=("https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
+ https://github.com/celery/celery/commit/89c4573ac47a1f840ed2d15e2820d0eaed29dc32.patch
+ https://github.com/celery/celery/commit/6514fed13ef2f992b2846116f9b2d1237aac8298.patch
+ celery at .service celery.tmpfiles.d)
+options=('!emptydirs')
+sha512sums=('91dd16bd6c9544c76d84e468872e052bdf5e1737980a1a3baee914c75c88db44b9ac8de7ddc4278988ca6cb159496b6560cecd6bb51d6352725009e97d268afb'
+ '691ae1b4bf98317f6bea2d2ae26cd770c5a5242ae6b41d8d5cd0ea0ce3d521d5f3b16a1b1f33429bd777f7f628c84e29a5bada37ecb33e73c0118f9c1f992a12'
+ '6c3e6da14c57cad5e26a34c5d5f59977938fbb93ae04b97b88427ca3c67b1f0ff8cf4bbfb42394ac2a6714cf847527275f99a45f6e34fb260686bb80b80d7cc4'
+ '3c6c9dbdacca2de12d49c03526b34797fd867c14d04115af0d1fda64d2848a5d3f64ceb6d284be319a81d932dc86e69c157b6f5f859f2fa213fc2f43a6052c65'
+ '67279b75c3b44d065811c9c90aee006296164000912d5bb97c74956b26ee4ad4f0847e846052a896d379848b869c849300367e676d3f689cf29e3a0c7ae5310b')
+
+prepare() {
+ # Fix for new pymongo
+ patch -d celery-$pkgver -p1 -i ../89c4573ac47a1f840ed2d15e2820d0eaed29dc32.patch
+ # Fix for new pytest
+ patch -d celery-$pkgver -p1 -i ../6514fed13ef2f992b2846116f9b2d1237aac8298.patch
+ sed -i -e 's/==/>=/' -e 's/< *4.4/<6/' celery-$pkgver/requirements/test.txt
+}
+
+build() {
+ cd celery-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd celery-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd 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
+}
Copied: python-celery/repos/community-staging-any/celery.tmpfiles.d (from rev 520656, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-staging-any/celery.tmpfiles.d (rev 0)
+++ community-staging-any/celery.tmpfiles.d 2019-10-26 20:53:49 UTC (rev 520659)
@@ -0,0 +1,2 @@
+d /run/celery 0755 - - - -
+d /var/log/celery 0755 - - - -
Copied: python-celery/repos/community-staging-any/celery at .service (from rev 520656, python-celery/trunk/celery at .service)
===================================================================
--- community-staging-any/celery at .service (rev 0)
+++ community-staging-any/celery at .service 2019-10-26 20:53:49 UTC (rev 520659)
@@ -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