Date: Tuesday, November 30, 2021 @ 22:32:01 Author: felixonmars Revision: 1059044
archrelease: copy trunk to community-staging-any Added: python-stestr/repos/community-staging-any/ python-stestr/repos/community-staging-any/PKGBUILD (from rev 1059042, python-stestr/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: python-stestr/repos/community-staging-any/PKGBUILD (from rev 1059042, python-stestr/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-11-30 22:32:01 UTC (rev 1059044) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Simon Sapin <simon dot sapin at exyr dot org> +# Contributor: Kyle Keen <keen...@gmail.com> + +pkgname=python-stestr +pkgver=3.2.1 +pkgrel=2 +pkgdesc="A test runner runner similar to testrepository" +url="https://stestr.readthedocs.io/en/latest/" +license=('Apache') +arch=('any') +depends=('python-future' 'python-cliff' 'python-pbr' 'python-subunit' 'python-fixtures' + 'python-testtools' 'python-yaml' 'python-voluptuous') +checkdepends=('python-hacking' 'python-sphinx' 'python-mock' 'python-coverage' + 'python-ddt') +source=("https://pypi.io/packages/source/s/stestr/stestr-$pkgver.tar.gz") +sha512sums=('43187ca0d81e3b31e16ed60a1db561dc49c34f679594d11cad8cb0e658bf790af0b3d606bf99233a5767e2511675d3aedb6a476046d2f5483ffab05eaae393ed') + +build() { + cd stestr-$pkgver + python setup.py build +} + +check() { + cd stestr-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + ( + export PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" + export PATH="$PWD/tmp_install/usr/bin:$PATH" + stestr run + ) +} + +package() { + cd stestr-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +}