hashworks pushed to branch main at Arch Linux / Packaging / Packages / python-anytree
Commits: d5ecfd1a by Justin Kromlinger at 2023-10-30T15:45:07+01:00 Move from AUR - - - - - 44d78152 by Justin Kromlinger at 2023-10-30T15:45:35+01:00 Add pytest check stage - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -1,30 +1,41 @@ -# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> +# Maintainer: Justin Kromlinger <[email protected]> +# Contributor: Mark Wagie <mark dot wagie at proton dot me> +# Contributor: Jan Alexander Steffens (heftig) <[email protected]> pkgname=python-anytree -pkgver=2.8.0 -pkgrel=6 -pkgdesc="Powerful and Lightweight Python Tree Data Structure" +pkgver=2.11.2 +pkgrel=2 +pkgdesc="Simple, lightweight and extensible Tree data structure." +arch=('any') url="https://anytree.readthedocs.io/" -arch=(any) -license=(Apache) -depends=(python-six) -makedepends=(python-setuptools git) -_commit=75c0198636f8997967ba00df5077cd21350f68ce # tags/2.8.0 +license=('Apache') +depends=('python-six') +makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-wheel' 'git') +checkdepends=('python-pytest' 'graphviz') +_commit=3a9558f2883db6de9b6ada74144ca37934f3194e source=("$pkgname::git+https://github.com/c0fec0de/anytree#commit=$_commit") sha256sums=('SKIP') pkgver() { - cd $pkgname + cd "$pkgname" git describe --tags | sed 's/^v//;s/-/+/g' } build() { - cd $pkgname - python setup.py build + cd "$pkgname" + python -m build --wheel --no-isolation +} + +check() { + cd "$pkgname" + + python -m pytest } package() { - cd $pkgname - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - rm "$pkgdir/usr/LICENSE" + cd "$pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-anytree/-/compare/a8ce67f04d7dda864ced582d747ae03ab60a3631...44d78152be240fde2dcb5f3bf276214191b27219 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-anytree/-/compare/a8ce67f04d7dda864ced582d747ae03ab60a3631...44d78152be240fde2dcb5f3bf276214191b27219 You're receiving this email because of your account on gitlab.archlinux.org.
