mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
47 lines
1 KiB
Text
47 lines
1 KiB
Text
# Maintainer: Struan Robertson <contact@struanrobertson.co.uk>
|
|
pkgname=py3-pytest-datadir
|
|
_pkgname=pytest-datadir
|
|
pkgver=1.6.1
|
|
pkgrel=0
|
|
pkgdesc="pytest plugin for test data directories and files"
|
|
url="https://github.com/gabrielcnr/pytest-datadir"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-pytest
|
|
"
|
|
makedepends="
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
py3-installer
|
|
py3-gpep517
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$url/archive/v$pkgver/$_pkgname-v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$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 .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
fe5ff206771f4998cdfa6ea6135d500c5ea7a730d739712998bcd4f5a933ca89fd6fb0b0058134e39cbcc666d8df7fb10bd72635e5af266a814bd8834d6a1d26 pytest-datadir-v1.6.1.tar.gz
|
|
"
|