diff options
Diffstat (limited to 'community/py3-dulwich/APKBUILD')
-rw-r--r-- | community/py3-dulwich/APKBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/community/py3-dulwich/APKBUILD b/community/py3-dulwich/APKBUILD index 8dc9309cbb6..e53f0d4f060 100644 --- a/community/py3-dulwich/APKBUILD +++ b/community/py3-dulwich/APKBUILD @@ -2,15 +2,16 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-dulwich _pkgname=dulwich -pkgver=0.20.42 -pkgrel=0 +pkgver=0.21.7 +pkgrel=1 pkgdesc="python implementation of the Git file formats and protocols" url="https://www.dulwich.io/" arch="all" license="GPL-2.0-or-later OR Apache-2.0" depends="py3-certifi py3-urllib3" -makedepends="py3-setuptools python3-dev" +makedepends="py3-setuptools python3-dev py3-gpep517 py3-wheel" checkdepends="py3-mock py3-gpgme" +subpackages="$pkgname-pyc" source="https://github.com/jelmer/dulwich/archive/$_pkgname-$pkgver.tar.gz skip-network-tests.patch " @@ -20,18 +21,24 @@ replaces="py-dulwich" # Backwards compatibility provides="py-dulwich=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 -m unittest dulwich.tests.test_suite + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m unittest dulwich.tests.test_suite } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + rm -r "$pkgdir"/usr/lib/python3*/site-packages/dulwich/tests/ } sha512sums=" -cc157bf65f4cc2e3ee1156d2ce17bdeaa5f67b6d57ed65d062a3da0306096be6b2900af5421fb6f903db536f302984646f1172c5ce082ddcf8057ed137ed8259 dulwich-0.20.42.tar.gz +507705dd4db780a5c91101505d4c02c701579ebccf15a31049cf9b9c1ea333add8429302ac39b99fe33ec0ea7e0eb44008393a7769084221b4c1b169edd953e0 dulwich-0.21.7.tar.gz 23743222a8306518c855b1f9bfd56e8b09624af4199541c1377a9dea5863f4489133e346b181f4018a64402d45a82ada42130ac1bdfa9163e7ff6586df7e3931 skip-network-tests.patch " |