mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 11:45:36 +02: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.7.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="
|
|
506b7749a7e252d3c495d283acdf04330d3db6af85c4035d43d674d1da67918a601c9042d788bf242929639b9b304c5cec4a6b11aae9ad8f0cb706118344cbd8 pytest-datadir-v1.7.1.tar.gz
|
|
"
|