Date: Saturday, March 14, 2020 @ 19:25:29 Author: shibumi Revision: 597096
add python-testinfra Added: python-testinfra/ python-testinfra/repos/ python-testinfra/trunk/ python-testinfra/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: python-testinfra/trunk/PKGBUILD =================================================================== --- python-testinfra/trunk/PKGBUILD (rev 0) +++ python-testinfra/trunk/PKGBUILD 2020-03-14 19:25:29 UTC (rev 597096) @@ -0,0 +1,38 @@ +# Maintainer: Christian Rebischke <[email protected]> +# Contributor: Lex Black <[email protected]> +# Contributor: gardar <[email protected]> +# Contributor: Morten Linderud <[email protected]> + +pkgbase="python-testinfra" +pkgname="python-testinfra" +pkgver=5.0.0 +pkgrel=1 +pkgdesc='Testinfra test your infrastructures' +url="https://github.com/philpep/testinfra" +arch=('any') +license=('Apache') +depends=('python-six') +makedepends=('git' 'python' 'python-setuptools' 'python-pbr' 'python-sphinx') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/philpep/testinfra/archive/${pkgver}.tar.gz") +sha512sums=('') + + +build() { + cd "${pkgname}-${pkgver}" + python setup.py build + make -C doc html man +} + +check() { + cd "${pkgname}-${pkgver}" + py.test + +} + +package() { + cd "${pkgname}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -d "${pkgdir}/usr/share/doc/${pkgname}" + cp -r doc/build/html/* "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 doc/build/man/testinfra.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1" +}
