Date: Saturday, October 30, 2021 @ 15:24:22 Author: yan12125 Revision: 1034987
archrelease: copy trunk to community-testing-any Added: python-sure/repos/community-testing-any/ python-sure/repos/community-testing-any/PKGBUILD (from rev 1034986, python-sure/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: python-sure/repos/community-testing-any/PKGBUILD (from rev 1034986, python-sure/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2021-10-30 15:24:22 UTC (rev 1034987) @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-sure +pkgver=2.0.0 +pkgrel=1 +pkgdesc="An idiomatic testing library for python with powerful and flexible assertions" +arch=('any') +url="https://github.com/gabrielfalcao/sure" +license=('GPL') +depends=('python-six' 'python-mock') +makedepends=('python-setuptools' 'git') +checkdepends=('python-nose' 'python-rednose') +source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz") +sha512sums=('d113b08afd63c379ec9f05169b1ad15f3bb616a1f6ad7d0ef6513e98ba7ebb7462254b2d25307906d9f63603fed4f9e4b83ccbca0ec53a2b483f9395fa0fb94a') + +prepare() { + export LC_CTYPE=en_US.UTF-8 +} + +build() { + cd "$srcdir"/sure-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/sure-$pkgver + python setup.py test +} + +package() { + cd sure-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +}