Date: Thursday, September 24, 2020 @ 21:41:48
Author: felixonmars
Revision: 711934
archrelease: copy trunk to community-testing-any
Added:
python-celery/repos/community-testing-any/
python-celery/repos/community-testing-any/PKGBUILD
(from rev 711933, python-celery/trunk/PKGBUILD)
python-celery/repos/community-testing-any/celery.tmpfiles.d
(from rev 711933, python-celery/trunk/celery.tmpfiles.d)
python-celery/repos/community-testing-any/[email protected]
(from rev 711933, python-celery/trunk/[email protected])
-------------------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
celery.tmpfiles.d | 2 +
[email protected] | 15 +++++++++++++
3 files changed, 77 insertions(+)
Copied: python-celery/repos/community-testing-any/PKGBUILD (from rev 711933,
python-celery/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-09-24 21:41:48 UTC (rev 711934)
@@ -0,0 +1,60 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Marcin Kolenda <[email protected]>
+# Contributor: Valentin Haloiu <[email protected]>
+# Contributor: Lukas Linhart <[email protected]>
+# Contributor: Marco Elver <marco.elver AT gmail.com>
+# Contributor: apkawa <[email protected]>
+
+pkgname=python-celery
+pkgver=5.0.0
+pkgrel=1
+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"
+ [email protected] 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"/[email protected]
"$pkgdir"/usr/lib/systemd/system/[email protected]
+ install -Dm644 "$srcdir"/celery.tmpfiles.d
"$pkgdir"/usr/lib/tmpfiles.d/celery.conf
+}
Copied: python-celery/repos/community-testing-any/celery.tmpfiles.d (from rev
711933, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-testing-any/celery.tmpfiles.d (rev 0)
+++ community-testing-any/celery.tmpfiles.d 2020-09-24 21:41:48 UTC (rev
711934)
@@ -0,0 +1,2 @@
+d /run/celery 0755 - - - -
+d /var/log/celery 0755 - - - -
Copied: python-celery/repos/community-testing-any/[email protected] (from rev
711933, python-celery/trunk/[email protected])
===================================================================
--- community-testing-any/[email protected] (rev 0)
+++ community-testing-any/[email protected] 2020-09-24 21:41:48 UTC (rev
711934)
@@ -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