diff --git a/community/py3-aiofiles/APKBUILD b/community/py3-aiofiles/APKBUILD index 8820c2582de..c83ea185b3d 100644 --- a/community/py3-aiofiles/APKBUILD +++ b/community/py3-aiofiles/APKBUILD @@ -3,31 +3,34 @@ pkgname=py3-aiofiles _pkgname=aiofiles pkgver=0.8.0 -pkgrel=1 +pkgrel=2 pkgdesc="File support for asyncio" url="https://github.com/Tinche/aiofiles" arch="noarch" license="Apache-2.0" depends="python3" -makedepends="python3-dev py3-setuptools pyproject2setuppy " +makedepends="py3-build py3-installer py3-poetry-core" checkdepends="py3-pytest py3-pytest-asyncio" -source="$_pkgname-$pkgver.tar.gz::https://github.com/Tinche/aiofiles/archive/v$pkgver.tar.gz -create-setuppy.patch" +source="$_pkgname-$pkgver.tar.gz::https://github.com/Tinche/aiofiles/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { - python3 setup.py build + # XXX: hack for poetry to not ignore files + GIT_DIR=. python3 -m build --no-isolation --wheel } check() { - PYTHONPATH="$builddir"/build/lib pytest + python3 -m installer -d testenv \ + dist/aiofiles-$pkgver-py3-none-any.whl + local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" + PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest } package() { - python3 setup.py install --root="$pkgdir" --optimize=1 + python3 -m installer -d "$pkgdir" \ + dist/aiofiles-$pkgver-py3-none-any.whl } sha512sums=" 4f590baa0369d465a6139c0d4f50beeec60f8f213b607e0e41598f45f507a12edc67b29c77718b03eee7532f10ead8599f55aac3fcb78d0429435c25a58f6d2e aiofiles-0.8.0.tar.gz -1b561db05974468eecec48f2b4e0f705b4bb9bdfdf6a1c1ce40ad884824ca468243cd4296325674fa311b3ce32827d924383f814c8475b6ccddad302a5c23f51 create-setuppy.patch " diff --git a/community/py3-aiofiles/create-setuppy.patch b/community/py3-aiofiles/create-setuppy.patch deleted file mode 100644 index 0beee91e9fa..00000000000 --- a/community/py3-aiofiles/create-setuppy.patch +++ /dev/null @@ -1,14 +0,0 @@ -Author: Francesco Colista -Date: Tue May 19 18:56:39 2020 +0000 - - added setup.py to build package with setuptools - -diff --git a/setup.py b/setup.py -new file mode 100644 -index 0000000..ebe2f51 ---- /dev/null -+++ b/setup.py -@@ -0,0 +1,3 @@ -+#!/usr/bin/env python3 -+from pyproject2setuppy.main import main -+main()