Date: Monday, November 14, 2022 @ 21:19:09 Author: alucryd Revision: 1347900
python-outcome 1.2.0-2: use pytest Modified: python-outcome/trunk/PKGBUILD ----------+ PKGBUILD | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-14 21:19:03 UTC (rev 1347899) +++ PKGBUILD 2022-11-14 21:19:09 UTC (rev 1347900) @@ -2,7 +2,7 @@ pkgname=python-outcome pkgver=1.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='Capture the outcome of Python function calls' arch=(any) url=https://github.com/python-trio/outcome @@ -13,10 +13,12 @@ ) makedepends=( git - python-async_generator + python-setuptools +) +checkdepends=( python-pytest + python-pytest-asyncio python-pytest-cov - python-setuptools ) _tag=ae996f8b7887e4a61ee6b3717c01ecba19a5b7dc source=(git+https://github.com/python-trio/outcome.git#tag=${_tag}) @@ -24,25 +26,21 @@ pkgver() { cd outcome - git describe --tags | sed 's/^v//' } build() { cd outcome - python setup.py build } check() { cd outcome - - python setup.py test + PYTHONPATH=$PWD/build/lib pytest } package() { cd outcome - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-outcome/ }
