mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=py3-anytree
|
|
_pkgname=anytree
|
|
pkgver=2.13.0
|
|
pkgrel=0
|
|
pkgdesc="Simple, lightweight and extensible Tree data structure"
|
|
url="https://github.com/c0fec0de/anytree"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-six"
|
|
makedepends="py3-gpep517 py3-pdm-backend"
|
|
checkdepends="py3-pytest py3-pytest-cov py3-yaml graphviz"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/c0fec0de/anytree/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
export PDM_BUILD_SCM_VERSION="$pkgver"
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
# ModuleNotFoundError: No module named 'test2ref'
|
|
.testenv/bin/python3 -m pytest \
|
|
--ignore tests/test_dotexport.py \
|
|
--ignore tests/test_dotexporter.py \
|
|
--ignore tests/test_mermaidexporter.py \
|
|
--ignore tests/test_uniquedotexporter.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f587449b78877ee7f9ed1dedf88d55c75c05567fd7fe780808b2852152308a4bf2d42651fe1967b9eb67021ca33daa29ed387847ad93261ff93dfda356b4f296 py3-anytree-2.13.0.tar.gz
|
|
"
|