mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-pytest-celery
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=pytest-celery
|
|
pkgver=1.1.1
|
|
pkgrel=0
|
|
pkgdesc="Official pytest plugin for Celery."
|
|
url="https://github.com/celery/pytest-celery"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-redis
|
|
py3-python-memcached
|
|
py3-pytest-docker-tools
|
|
py3-tenacity
|
|
py3-psutil
|
|
"
|
|
checkdepends="
|
|
py3-celery
|
|
py3-pytest
|
|
py3-coverage
|
|
py3-pytest-sugar
|
|
py3-pytest-cov
|
|
py3-pytest-xdist
|
|
py3-pytest-subtests
|
|
py3-pytest-rerunfailures
|
|
"
|
|
makedepends="
|
|
poetry
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
"
|
|
options="!check" # requires docker and has circular dependency with py3-celery
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/celery/pytest-celery/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
e3d309e273d3f6f920579c1137378fdef901b79bdb0f2642eca4b01e18803809ecf604647ad81b88b1449728de7c67d6d485e55919c67db517d29807bf9bb208 py3-pytest-celery-1.1.1.tar.gz
|
|
"
|