[arch-commits] Commit in (4 files)
Christian Rebischke
shibumi at archlinux.org
Sat Mar 14 19:25:29 UTC 2020
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 <chris.rebischke at archlinux.org>
+# Contributor: Lex Black <autumn-wind at web.de>
+# Contributor: gardar <aur at gardar.net>
+# Contributor: Morten Linderud <morten at linderud.pw>
+
+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"
+}
More information about the arch-commits
mailing list