mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 03:39:53 +03:00
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-pytest-docker-tools
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=pytest-docker-tools
|
|
pkgver=3.1.9
|
|
pkgrel=0
|
|
pkgdesc="Opionated helpers for creating py.test fixtures for Docker integration and smoke testing environments"
|
|
url="https://github.com/Jc2k/pytest-docker-tools"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-docker-py
|
|
py3-pytest
|
|
"
|
|
checkdepends="
|
|
py3-pytest-cov
|
|
"
|
|
makedepends="
|
|
poetry
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
docker
|
|
"
|
|
options="!check" # requires docker
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Jc2k/pytest-docker-tools/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="
|
|
ae57b315b939e9edbe209d9986f089c9f1b03b464fa6b2adf48106b81614fa80f56b67bb684cb7bd69dc3206826d4a62c259b1bdc7d2a810d3b31c17512de2ea py3-pytest-docker-tools-3.1.9.tar.gz
|
|
"
|