testing/py3-memcached: move from user
This commit is contained in:
parent
b4ad7dc77c
commit
447ae3222a
1 changed files with 22 additions and 8 deletions
|
@ -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
|
||||
"
|
Loading…
Reference in a new issue