A builds.sr.ht/builds.sr.ht-runner.initd => builds.sr.ht/builds.sr.ht-runner.initd +25 -0
@@ 0,0 1,25 @@
+#!/sbin/openrc-run
+name="srht-runner"
+description="builds.sr.ht build runner service"
+
+depend() {
+ need net
+}
+
+nproc() {
+ grep "core id" /proc/cpuinfo | wc -l
+}
+
+start() {
+ ebegin "Starting $name"
+ start-stop-daemon --background --make-pidfile --pidfile /run/$name.pid -u builds \
+ --exec /usr/bin/celery -- \
+ -A buildshr.runner worker --loglevel=info -c $(nproc)
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $name"
+ start-stop-daemon --stop --exec /usr/bin/celery --pidfile /run/$name.pid
+ eend $?
+}
A builds.sr.ht/builds.sr.ht.pre-install => builds.sr.ht/builds.sr.ht.pre-install +3 -0
@@ 0,0 1,3 @@
+#!/bin/sh
+addgroup -S builds || true
+adduser -SDH -s /sbin/nologin -g builds builds || true
A py3-amqp/APKBUILD => py3-amqp/APKBUILD +30 -0
@@ 0,0 1,30 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+_name=amqp
+pkgname=py3-amqp
+pkgver=2.2.2
+pkgrel=1
+pkgdesc="Low-level AMQP client for Python"
+url="https://github.com/celery/py-amqp"
+arch="noarch"
+license="LGPL"
+depends="python3 py3-vine"
+makedepends="py-setuptools"
+source="https://files.pythonhosted.org/packages/source/a/${_name}/${_name}-${pkgver}.tar.gz"
+builddir="$srcdir/${_name}-${pkgver}"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ pytest-3
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha512sums="8ebb8f2b0942e9b88b12cf35b8861da392190dd200d843bf3bba7b98e325afa53f52fe3f8250af1d2c1c14ffe8a071df5494d1eedc1bff974cd62fe88bc3e1e7 amqp-2.2.2.tar.gz"
A py3-case/APKBUILD => py3-case/APKBUILD +30 -0
@@ 0,0 1,30 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+_name="case"
+pkgname=py3-case
+pkgver=1.5.3
+pkgrel=1
+pkgdesc="Ptyhon unit testing utilities"
+url="https://github.com/celery/case"
+arch="noarch"
+license="BSD"
+depends="python3 py3-nose"
+makedepends="py-setuptools"
+source="https://files.pythonhosted.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz"
+builddir="$srcdir/${_name}-${pkgver}"
+
+check() {
+ cd "$builddir"
+ nosetests
+}
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha512sums="ae98a571c282f80c685c42ab1dc578847fe88cf8cd07faff505a8df8e3282a602908a8780ab88b36851e3ee6f3c178405e5c50776fd0f49fcc990087575f2958 case-1.5.3.tar.gz"
M py3-celery/APKBUILD => py3-celery/APKBUILD +3 -0
@@ 12,9 12,12 @@ makedepends="py-setuptools"
depends="
py3-billiard
py3-tz
+ py3-kombu
"
source="https://pypi.io/packages/source/c/celery/celery-$pkgver.tar.gz"
builddir="$srcdir/${_name}-${pkgver}"
+# check requires a buttload of dependencies I can't be arsed to package
+options="$options !check"
build() {
cd "$builddir"
A py3-kombu/APKBUILD => py3-kombu/APKBUILD +27 -0
@@ 0,0 1,27 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+_name=kombu
+pkgname=py3-kombu
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="A messaging library for Python"
+url="http://kombu.readthedocs.org"
+arch="noarch"
+license="BSD"
+depends="python3"
+makedepends="py-setuptools py3-amqp"
+source="https://files.pythonhosted.org/packages/source/k/${_name}/${_name}-${pkgver}.tar.gz"
+builddir="$srcdir/${_name}-${pkgver}"
+# check requires a buttload of dependencies I can't be arsed to package
+options="$options !check"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha512sums="fc104a3f974fabf090cc257b1a7623af6048f4630c6c2a9bb693fe69d77b6cdab36135a290a41056c1f854f61cce8fc2aa6b7880e9273581bfdfa162b5724861 kombu-4.1.0.tar.gz"
A py3-nose/APKBUILD => py3-nose/APKBUILD +26 -0
@@ 0,0 1,26 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+_name=nose
+pkgname=py3-nose
+pkgver=1.3.7
+pkgrel=1
+pkgdesc="A discovery-based unittest extension"
+url="http://readthedocs.org/docs/nose"
+arch="noarch"
+license="LGPL"
+depends="python3"
+makedepends="py-setuptools"
+source="https://files.pythonhosted.org/packages/source/n/${_name}/${_name}-${pkgver}.tar.gz"
+builddir="$srcdir/${_name}-${pkgver}"
+options="$options !check"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha512sums="e65c914f621f8da06b9ab11a0ff2763d6e29b82ce2aaed56da0e3773dc899d9deb1f20015789d44c65a5dad7214520f5b659b3f8d7695fb207ad3f78e5cf1b62 nose-1.3.7.tar.gz"
A py3-vine/APKBUILD => py3-vine/APKBUILD +30 -0
@@ 0,0 1,30 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+_name=vine
+pkgname=py3-vine
+pkgver=1.1.4
+pkgrel=1
+pkgdesc="Promises library for Python"
+url="https://github.com/celery/vine"
+arch="noarch"
+license="BSD"
+depends="python3"
+makedepends="py-setuptools py3-case py3-pytest"
+source="https://files.pythonhosted.org/packages/source/v/${_name}/${_name}-${pkgver}.tar.gz"
+builddir="$srcdir/${_name}-${pkgver}"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+sha512sums="b85438cd30b3cb6c642380b3da120783cf2d4306366e04a141061d40cf6b8ce5b52ca15562b71f28392ad376c1f160b39162fa7933665b5c21179b0994347460 vine-1.1.4.tar.gz"