mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 11:11:40 +01:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-confection
|
|
pkgver=0.1.3
|
|
pkgrel=0
|
|
pkgdesc="Confection: the sweetest config system for Python"
|
|
url="https://github.com/explosion/confection"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-pydantic
|
|
py3-srsly
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
checkdepends="
|
|
py3-catalogue
|
|
py3-pytest-runner
|
|
py3-pytest-xdist
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/explosion/confection/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/confection-$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 -n auto
|
|
}
|
|
|
|
package() {
|
|
python -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
install -vDm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
|
|
rm -r "$pkgdir"/usr/lib/python3*/site-packages/confection/tests
|
|
}
|
|
|
|
sha512sums="
|
|
db07295cfd8ae935610a82f6693c197763791fec88ac9b5875129edd6d8273e38e2c13cdde0109a240c67c214ebf795f33fef5a7f3237b81130b4ca608407aa0 py3-confection-0.1.3.tar.gz
|
|
"
|