testing/py3-flower: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:10 -04:00
parent c8374a9d05
commit 17321a7110
2 changed files with 50 additions and 32 deletions

View file

@ -0,0 +1,50 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=flower
pkgname="py3-$_pyname"
pkgver=2.0.0
pkgrel=0
arch="noarch !s390x" # Missing py3-celery for tests
pkgdesc="Real-time monitor and web admin for Celery distributed task queue"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
depends="
py3-redis
py3-humanize
py3-prometheus-client
py3-click
"
makedepends="
py3-setuptools
py3-gpep517
py3-wheel
py3-installer
"
checkdepends="
py3-pytest
py3-tornado
py3-celery
"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
e199223c05763abbbc0e03b310ae68f18e2d3046fe41dc1ff2f52943d2ada703fce04ff0523cac883828064607593bc583f439a187f7fe20b8ab883a1e1f2331 py3-flower-2.0.0.tar.gz
"

View file

@ -1,32 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=flower
pkgname="py3-$_pyname"
pkgver=1.2.0
pkgrel=1
arch="noarch"
pkgdesc="Real-time monitor and web admin for Celery distributed task queue"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-CLAUSE"
depends="py3-redis py3-humanize py3-prometheus-client py3-click"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-tornado py3-celery"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python3 setup.py install --root="$pkgdir" -O1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
b0366816988a6dbc44be551d1609e33ae73a824901cc1c641a1cd661c5d58d67a2df52cf22f722c04817097cabbe5a996775f34ec8f52771442ff3d081bd1ed2 py3-flower-1.2.0.tar.gz
"