mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-cchardet: build with gpep517
This commit is contained in:
parent
f7c42d5f51
commit
34f78c6508
@ -1,27 +1,26 @@
|
|||||||
# Maintainer: Michał Adamski <michal@ert.pl>
|
# Maintainer: Michał Adamski <michal@ert.pl>
|
||||||
pkgname=py3-cchardet
|
pkgname=py3-cchardet
|
||||||
pkgver=2.1.7
|
pkgver=2.1.7
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="High speed universal character encoding detector"
|
pkgdesc="High speed universal character encoding detector"
|
||||||
url="https://github.com/PyYoshi/cChardet"
|
url="https://github.com/PyYoshi/cChardet"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="MPL-1.1"
|
license="MPL-1.1"
|
||||||
makedepends="cython py3-setuptools python3-dev"
|
makedepends="cython py3-setuptools python3-dev py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/cchardet-$pkgver"
|
builddir="$srcdir/cchardet-$pkgver"
|
||||||
options="!check" # tests not included in pypi tarball
|
options="!check" # tests not included in pypi tarball
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
}
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
check() {
|
|
||||||
python3 setup.py test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user