aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2023-11-10 04:08:48 +0000
committerPatrycja Rosa <alpine@ptrcnull.me>2023-11-10 22:46:11 +0000
commit7d350168b80a431595952ae42ce11efc0c47fb98 (patch)
tree292b542f3ea976abcd81b4eeab4003a3dc2a20db
parent199ee01f92b7494f7d50b8515be02220da5000d4 (diff)
community/py3-wrapt: upgrade to 1.16.0 & use gpep517 packaging
-rw-r--r--community/py3-wrapt/APKBUILD19
1 files changed, 12 insertions, 7 deletions
diff --git a/community/py3-wrapt/APKBUILD b/community/py3-wrapt/APKBUILD
index 25251c91b2c..0f11823f927 100644
--- a/community/py3-wrapt/APKBUILD
+++ b/community/py3-wrapt/APKBUILD
@@ -2,31 +2,36 @@
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-wrapt
_pkgname=wrapt
-pkgver=1.15.0
-pkgrel=1
+pkgver=1.16.0
+pkgrel=0
pkgdesc="Module for decorators, wrappers and monkey patching"
url="https://github.com/GrahamDumpleton/wrapt"
arch="all"
license="BSD-2-Clause"
depends="python3"
-makedepends="python3-dev py3-setuptools"
+makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/GrahamDumpleton/wrapt/archive/$pkgver/py3-wrapt-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
- PYTHONPATH="$(echo $PWD/build/lib*)" py.test-3 -v
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest
}
package() {
- python3 setup.py install --skip-build --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-6be3fc6380e6bb11a26e35fb093ca54d2e851ab384682f6b1201599980c0429c1e2f23089540b66dd80985baaaf3fb93ce29034758e062e2cfb2f52e3b362779 py3-wrapt-1.15.0.tar.gz
+65bdda3b6580748ceb720e8fc1a6b05832a355d541aa650bc87052f3aa8793d03d29a080b79eceb16392e297aed8f11a283e36f5f40a0db614b409b1dc2b6c9c py3-wrapt-1.16.0.tar.gz
"