diff --git a/testing/py3-cchardet/APKBUILD b/testing/py3-cchardet/APKBUILD index 42614e4706e..c9acdb807e2 100644 --- a/testing/py3-cchardet/APKBUILD +++ b/testing/py3-cchardet/APKBUILD @@ -1,27 +1,26 @@ # Maintainer: MichaƂ Adamski pkgname=py3-cchardet pkgver=2.1.7 -pkgrel=4 +pkgrel=5 pkgdesc="High speed universal character encoding detector" url="https://github.com/PyYoshi/cChardet" arch="all" license="MPL-1.1" -makedepends="cython py3-setuptools python3-dev" +makedepends="cython py3-setuptools python3-dev py3-gpep517" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz" builddir="$srcdir/cchardet-$pkgver" options="!check" # tests not included in pypi tarball build() { - python3 setup.py build -} - -check() { - python3 setup.py test + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --skip-build --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="