[arch-commits] Commit in python-celery/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 14 21:35:00 UTC 2020
Date: Saturday, March 14, 2020 @ 21:34:59
Author: felixonmars
Revision: 597295
archrelease: copy trunk to community-testing-any
Added:
python-celery/repos/community-testing-any/
python-celery/repos/community-testing-any/PKGBUILD
(from rev 597293, python-celery/trunk/PKGBUILD)
python-celery/repos/community-testing-any/celery.tmpfiles.d
(from rev 597293, python-celery/trunk/celery.tmpfiles.d)
python-celery/repos/community-testing-any/celery at .service
(from rev 597294, python-celery/trunk/celery at .service)
-------------------+
PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
celery.tmpfiles.d | 2 +
celery at .service | 15 ++++++++++++
3 files changed, 79 insertions(+)
Copied: python-celery/repos/community-testing-any/PKGBUILD (from rev 597293, python-celery/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-03-14 21:34:59 UTC (rev 597295)
@@ -0,0 +1,62 @@
+# 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.4.1
+pkgrel=1
+pkgdesc='Distributed Asynchronous Task Queue'
+arch=('any')
+url='http://celeryproject.org/'
+license=('BSD')
+depends=('python-kombu' 'python-billiard' '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' 'python-pytest-runner' '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' 'python-pre-commit')
+source=("https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
+ celery at .service celery.tmpfiles.d)
+options=('!emptydirs')
+sha512sums=('91b0b4a5b6536665f73ccda09e8efa170f022e0201dcc615b45d4dcc68d486fe2485a717cb670fbc3f633721f6d3ff551f8f9fc3f1c605b4d7292cb0c1a5831d'
+ '3c6c9dbdacca2de12d49c03526b34797fd867c14d04115af0d1fda64d2848a5d3f64ceb6d284be319a81d932dc86e69c157b6f5f859f2fa213fc2f43a6052c65'
+ '67279b75c3b44d065811c9c90aee006296164000912d5bb97c74956b26ee4ad4f0847e846052a896d379848b869c849300367e676d3f689cf29e3a0c7ae5310b')
+
+prepare() {
+ cd celery-$pkgver
+ sed -i -e 's/==/>=/' requirements/test.txt
+
+ sed -i -e '/from pytest import PytestUnknownMarkWarning/a \ from _pytest.outcomes import Failed' \
+ -e 's/ValueError/Failed/' t/unit/contrib/test_pytest.py
+}
+
+build() {
+ cd celery-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd celery-$pkgver
+ # TODO
+ python setup.py pytest --addopts "--deselect t/unit/security/test_security.py::test_security::test_setup_security__default_app"
+}
+
+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-testing-any/celery.tmpfiles.d (from rev 597293, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-testing-any/celery.tmpfiles.d (rev 0)
+++ community-testing-any/celery.tmpfiles.d 2020-03-14 21:34:59 UTC (rev 597295)
@@ -0,0 +1,2 @@
+d /run/celery 0755 - - - -
+d /var/log/celery 0755 - - - -
Copied: python-celery/repos/community-testing-any/celery at .service (from rev 597294, python-celery/trunk/celery at .service)
===================================================================
--- community-testing-any/celery at .service (rev 0)
+++ community-testing-any/celery at .service 2020-03-14 21:34:59 UTC (rev 597295)
@@ -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