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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 22:32:45 UTC 2021


    Date: Tuesday, November 30, 2021 @ 22:32:45
  Author: felixonmars
Revision: 1059058

archrelease: copy trunk to community-staging-any

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

-------------------+
 PKGBUILD          |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 celery.tmpfiles.d |    2 +
 celery at .service   |   15 ++++++++++++
 3 files changed, 78 insertions(+)

Copied: python-celery/repos/community-staging-any/PKGBUILD (from rev 1059055, python-celery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 22:32:45 UTC (rev 1059058)
@@ -0,0 +1,61 @@
+# 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.1.2
+pkgrel=3
+pkgdesc='Distributed Asynchronous Task Queue'
+arch=('any')
+url='http://celeryproject.org/'
+license=('BSD')
+depends=('python-billiard' 'python-click-didyoumean' 'python-click-plugins' '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 on systemd for sysusers hook to create 'bin' user, because celery's test suite requires gid 1 to exist
+checkdepends=('python-pytest-celery' 'python-pytest-subtests' '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' 'systemd')
+source=("https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
+        celery at .service celery.tmpfiles.d)
+options=('!emptydirs')
+sha512sums=('c8f8d8dd4cc23a62ed3eea9b5388865993aee940730d4c672ae24c1b017466b0de6f422c7cb3b1bb2a4e33459a0d2447f9a42e59ee949fda56f3032298402a71'
+            '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 1059055, python-celery/trunk/celery.tmpfiles.d)
===================================================================
--- community-staging-any/celery.tmpfiles.d	                        (rev 0)
+++ community-staging-any/celery.tmpfiles.d	2021-11-30 22:32:45 UTC (rev 1059058)
@@ -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 1059055, python-celery/trunk/celery at .service)
===================================================================
--- community-staging-any/celery at .service	                        (rev 0)
+++ community-staging-any/celery at .service	2021-11-30 22:32:45 UTC (rev 1059058)
@@ -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