community/py3-tblib: upgrade to 3.0.0

This commit is contained in:
Bart Ribbers 2023-12-08 14:29:15 +01:00
parent 6f929208f4
commit 99ec5e2e4e

View File

@ -1,31 +1,50 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-tblib
pkgver=2.0.0
pkgver=3.0.0
pkgrel=0
pkgdesc="Serialization library for Exceptions and Tracebacks"
url="https://github.com/ionelmc/python-tblib"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-six"
makedepends="py3-setuptools python3-dev py3-docutils"
checkdepends="py3-pytest py3-twisted"
depends="py3-six"
makedepends="
py3-docutils
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="
py3-pytest
py3-twisted
"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/t/tblib/tblib-$pkgver.tar.gz"
source="https://pypi.python.org/packages/source/t/tblib/tblib-$pkgver.tar.gz
0001-$pkgname-Loosen-up-test.patch::https://github.com/ionelmc/python-tblib/commit/04dc5426812c508a10774122450acf386e546dbf.patch
0002-$pkgname-More-aggressive-location-stripping.patch::https://github.com/ionelmc/python-tblib/commit/66e14cdd101e4214cca6acca8f48b9abe4f75729.patch
"
builddir="$srcdir/tblib-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$PWD/build/lib" pytest
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="
740e7b02c4ae61b12ed1c0c3623c5c2dd142aaa24989e57d67ceed4894212bc18d51f0ab0a97953f1a0e16b30ef992ecee3730038e8b8fd4a3bc437d4a1a92b0 tblib-2.0.0.tar.gz
9914709846a4a9b0d9fe0f58eb321085f69e11ce364930f67cc5fec008d6ca57963b17699b0a136e2de91ff01004275fc43a38f318b9faab7cb2fac861108297 tblib-3.0.0.tar.gz
f0fdd3e892fecd11f9799a3d9051fa4c70effbef54018794613b0f1ef00b269c991d5ba37a964d527a60f92d6873083ce91ca0870433ed0de3f4e5c94f31840b 0001-py3-tblib-Loosen-up-test.patch
e04079f94fff47595b4b8897c6654ec37cb19df4469ee1f9397ca7607e3fb260c896dbb117b5839a887420fd94fc1ad09467ee4aaf62c2dbd7cb20ce4384faa5 0002-py3-tblib-More-aggressive-location-stripping.patch
"