diff options
Diffstat (limited to 'community/py3-msgpack/APKBUILD')
-rw-r--r-- | community/py3-msgpack/APKBUILD | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/community/py3-msgpack/APKBUILD b/community/py3-msgpack/APKBUILD index 2efa77939b4..47262c6ad93 100644 --- a/community/py3-msgpack/APKBUILD +++ b/community/py3-msgpack/APKBUILD @@ -2,15 +2,16 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-msgpack _pkgname=msgpack-python -pkgver=1.0.2 -pkgrel=1 +pkgver=1.0.8 +pkgrel=0 pkgdesc="Python3 module for MessagePack serialization/deserialization" url="https://msgpack.org/" arch="all" license="Apache-2.0" depends="python3" -makedepends="python3-dev py3-setuptools cython" -checkdepends="py3-pytest py3-pluggy" +makedepends="python3-dev py3-gpep517 py3-setuptools cython py3-wheel" +checkdepends="py3-pytest-xdist py3-pluggy" +subpackages="$pkgname-pyc" source="$_pkgname-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/v$pkgver.tar.gz" builddir="$srcdir/msgpack-python-$pkgver" @@ -18,25 +19,22 @@ replaces="py-msgpack" # Backwards compatibility provides="py-msgpack=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - local _pyarch - - case "$CARCH" in - x86_64|aarch64|ppc64le|mips*) _pyarch="$CARCH" ;; - x86) _pyarch=i686 ;; - armhf|armv7) _pyarch=armv8l ;; - s390x) _pyarch=s390x;; - esac - - local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))') - env PYTHONPATH="$PWD/build/lib.linux-$_pyarch-$_py3ver" pytest-3 test + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -n auto } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="8e53c57312beed0cbc24b681b605fa8b832469b1aab035aaa187b2887e7865ff653a3f358dab2f3e773c657cf0af4264d4e530639ef23934d4b95d9fa2a7ee9a msgpack-python-1.0.2.tar.gz" +sha512sums=" +a4d37bbc5b640ef49cc44cd2cb99710b149c94c112fb92e26a30c72de3fa7e206430c3242b03c88527874bc10b13a9d1862f61d782f202a612e2496aef7a8dbb msgpack-python-1.0.8.tar.gz +" |