testing/py3-memcached: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:24 -04:00
parent b4ad7dc77c
commit 447ae3222a

View file

@ -4,29 +4,43 @@
_pyname=python-memcached _pyname=python-memcached
pkgname=py3-memcached pkgname=py3-memcached
pkgver=1.59 pkgver=1.59
pkgrel=1 pkgrel=0
arch="noarch" arch="noarch"
pkgdesc="Python interface to memcached" pkgdesc="Python interface to memcached"
url="https://pypi.python.org/project/$_pyname" url="https://pypi.python.org/project/$_pyname"
license="Python-2.0" license="Python-2.0"
depends="py3-six" depends="
makedepends="py3-setuptools" py3-six
checkdepends="py3-tox" "
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" source="$pkgname-$pkgver.tar.gz::https://github.com/linsomniac/python-memcached/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
tox -e python3 || true pytest -v
} }
package() { package() {
python3 setup.py install --root="$pkgdir" --optimize=1 python3 -m installer -d "$pkgdir" \
install -Dm644 PSF.LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ dist/*.whl
} }
sha512sums=" sha512sums="
d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 py3-memcached-1.59.tar.gz d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 py3-memcached-1.59.tar.gz
" "