From 447ae3222a434fdefb50aa9999407fd9ef4bee47 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:24 -0400 Subject: [PATCH] testing/py3-memcached: move from user --- {user => testing}/py3-memcached/APKBUILD | 30 +++++++++++++++++------- 1 file changed, 22 insertions(+), 8 deletions(-) rename {user => testing}/py3-memcached/APKBUILD (66%) diff --git a/user/py3-memcached/APKBUILD b/testing/py3-memcached/APKBUILD similarity index 66% rename from user/py3-memcached/APKBUILD rename to testing/py3-memcached/APKBUILD index 397d58f..60a526b 100644 --- a/user/py3-memcached/APKBUILD +++ b/testing/py3-memcached/APKBUILD @@ -4,29 +4,43 @@ _pyname=python-memcached pkgname=py3-memcached pkgver=1.59 -pkgrel=1 +pkgrel=0 arch="noarch" pkgdesc="Python interface to memcached" url="https://pypi.python.org/project/$_pyname" license="Python-2.0" -depends="py3-six" -makedepends="py3-setuptools" -checkdepends="py3-tox" +depends=" + py3-six + " +makedepends=" + py3-setuptools + py3-wheel + py3-gpep517 + py3-installer + " +checkdepends=" + py3-pytest + " +options="!check" # Failing testsuite source="$pkgname-$pkgver.tar.gz::https://github.com/linsomniac/python-memcached/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver +subpackages="$pkgname-pyc" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } check() { - tox -e python3 || true + pytest -v } package() { - python3 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 PSF.LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 py3-memcached-1.59.tar.gz "