From b83eb38bae4cfc47a201f4fbe28bd8367f372c5f Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Sat, 27 May 2023 11:53:10 +0000 Subject: [PATCH] community/py3-vcrpy: upgrade to 4.3.1 https://github.com/kevin1024/vcrpy/blob/v4.3.1/docs/changelog.rst --- community/py3-vcrpy/APKBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/community/py3-vcrpy/APKBUILD b/community/py3-vcrpy/APKBUILD index 0de55ebb6ad..62b1058a294 100644 --- a/community/py3-vcrpy/APKBUILD +++ b/community/py3-vcrpy/APKBUILD @@ -1,33 +1,38 @@ # Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=py3-vcrpy -pkgver=4.2.1 -pkgrel=2 +pkgver=4.3.1 +pkgrel=0 pkgdesc="Automatically mock your HTTP interactions to simplify and speed up testing" options="!check" # Tests fail on the builders url="https://github.com/kevin1024/vcrpy" arch="noarch" license="MIT" depends="py3-yarl py3-yaml py3-six py3-wrapt" -makedepends="py3-setuptools" +makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-httpbin" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-$pkgver.tar.gz" builddir="$srcdir/vcrpy-$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 # ssl errors when test_requests.py is run - python3 -m pytest --deselect=tests/integration/test_requests.py + testenv/bin/python3 -m pytest --deselect=tests/integration/test_requests.py } package() { - python3 setup.py install --skip-build --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + dist/*.whl } sha512sums=" -ba8b85d397349e167d3ba6244581ef89db52f98c11c596107eeebfea687c0bf58a3ec264010f173901e00e37ac496bee0d59bb209be6ba702423da78bafca866 vcrpy-4.2.1.tar.gz +a5c2de2bf165ae750df3de1c90cbd4f1087c9ab6c0cb7e2dbc6ad53b86fa96e8da45ca7d5398223d6268121d5d3cb62d659c0125962088e4c1f08e1030a6fade vcrpy-4.3.1.tar.gz "