Date: Monday, November 14, 2022 @ 21:23:59 Author: alucryd Revision: 1347931
python-sniffio 1.3.0-2: use pytest Modified: python-sniffio/trunk/PKGBUILD ----------+ PKGBUILD | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-14 21:23:51 UTC (rev 1347930) +++ PKGBUILD 2022-11-14 21:23:59 UTC (rev 1347931) @@ -2,7 +2,7 @@ pkgname=python-sniffio pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc='Sniff out which async library your code is running under' arch=(any) url=https://github.com/python-trio/sniffio @@ -10,9 +10,12 @@ depends=(python) makedepends=( git + python-setuptools +) +checkdepends=( python-curio python-pytest - python-setuptools + python-pytest-cov ) _tag=cb8a03d45371efb20156ec895003a9bd988ac89b source=(git+https://github.com/python-trio/sniffio.git#tag=${_tag}) @@ -20,25 +23,21 @@ pkgver() { cd sniffio - git describe --tags | sed 's/^v//' } build() { cd sniffio - python setup.py build } check() { cd sniffio - - python setup.py test + pytest } package() { cd sniffio - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-sniffio/ }
