mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/py3-k5test: upgrade to 0.10.4 & switch to gpep517
This commit is contained in:
parent
a329296abe
commit
8e0c981443
@ -2,31 +2,33 @@
|
||||
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
||||
pkgname=py3-k5test
|
||||
_pkgname=k5test
|
||||
pkgver=0.10.3
|
||||
pkgrel=2
|
||||
pkgver=0.10.4
|
||||
pkgrel=0
|
||||
pkgdesc="A library for testing Python applications in self-contained Kerberos 5 environments"
|
||||
url="https://github.com/pythongssapi/k5test"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 krb5-dev krb5 krb5-server"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/k/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
source="https://files.pythonhosted.org/packages/source/k/k5test/k5test-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/k5test-$pkgver
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
# no upstream tests
|
||||
PYTHONPATH=build/lib python3 -c "import k5test"
|
||||
PYTHONPATH=build/lib .testenv/bin/python3 -c "import k5test"
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8c07677fbed5189d4ef905d6b201470871eab96700318194527514e7d841a8ec2c28c4f5139dbb2d7fe9be0db4046656d0b3f69ace86c1bbbd3886096adb5792 k5test-0.10.3.tar.gz
|
||||
98d76e9df0a4afc0e6eada4909f9eb01b6fd96d53003bb0e8dcda01cd25ab3e338f917a00e985ec23b9fc8756ced6927f0578864c1c06a365e23268dd16d8401 k5test-0.10.4.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user