[arch-commits] Commit in python-celery/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 19:53:38 UTC 2020
Date: Monday, November 9, 2020 @ 19:53:38
Author: felixonmars
Revision: 748108
archrelease: copy trunk to community-staging-any
Added:
python-celery/repos/community-staging-any/
python-celery/repos/community-staging-any/PKGBUILD
(from rev 748103, python-celery/trunk/PKGBUILD)
python-celery/repos/community-staging-any/celery.tmpfiles.d
(from rev 748103, python-celery/trunk/celery.tmpfiles.d)
python-celery/repos/community-staging-any/celery at .service
(from rev 748104, python-celery/trunk/celery at .service)
-------------------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
celery.tmpfiles.d | 2 +
celery at .service | 15 +++++++++++++
3 files changed, 77 insertions(+)
Copied: python-celery/repos/community-staging-any/PKGBUILD (from rev 748103, python-celery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:53:38 UTC (rev 748108)
@@ -0,0 +1,60 @@
+# 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=5.0.0
+pkgrel=2
+pkgdesc='Distributed Asynchronous Task Queue'
+arch=('any')
+url='http://celeryproject.org/'
+license=('BSD')
+depends=('python-billiard' 'python-click-didyoumean' 'python-click-repl' 'python-kombu'
+ 'python-pytz' 'python-vine')
+optdepends=('python-cryptography: 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-boto3: for SQS transport'
+ 'python-yaml: for using the yaml serializer'
+ 'python-pyzmq: for using ZeroMQ transport')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-celery' 'python-pytest-timeout' 'python-case' 'python-cryptography'
+ 'python-gevent' 'python-pymongo' 'python-msgpack' 'python-pyro' 'python-redis'
+ 'python-sqlalchemy' 'python-boto3' 'python-yaml' 'python-pyzmq' 'python-eventlet'
+ 'python-moto')
+source=("https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
+ celery at .service celery.tmpfiles.d)
+options=('!emptydirs')
+sha512sums=('8fa23c227eb7cd84d7980295e166d004fda2a961e0e339b1f0708c2f28ae49a090dfd020c3ac2a8022d9f976e906ed89b05bf1a4f9e4286f375379196fcf3108'
+ '3c6c9dbdacca2de12d49c03526b34797fd867c14d04115af0d1fda64d2848a5d3f64ceb6d284be319a81d932dc86e69c157b6f5f859f2fa213fc2f43a6052c65'
+ '67279b75c3b44d065811c9c90aee006296164000912d5bb97c74956b26ee4ad4f0847e846052a896d379848b869c849300367e676d3f689cf29e3a0c7ae5310b')
+
+prepare() {
+ cd celery-$pkgver
+ sed -i -e 's/==/>=/' -e '/pre-commit/d' requirements/test.txt
+}
+
+build() {
+ cd celery-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd celery-$pkgver
+ # t/unit/apps/test_multi.py & t/unit/bin/test_multi.py: needs write permission to /var/run/celery
+ python -m pytest --deselect t/unit/apps/test_multi.py --deselect t/unit/bin/test_multi.py
+}
+
+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 748103, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-staging-any/celery.tmpfiles.d (rev 0)
+++ community-staging-any/celery.tmpfiles.d 2020-11-09 19:53:38 UTC (rev 748108)
@@ -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 748104, python-celery/trunk/celery at .service)
===================================================================
--- community-staging-any/celery at .service (rev 0)
+++ community-staging-any/celery at .service 2020-11-09 19:53:38 UTC (rev 748108)
@@ -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