[arch-commits] Commit in python-testinfra/trunk (PKGBUILD)

Christian Rebischke shibumi at archlinux.org
Sat Mar 14 20:14:31 UTC 2020


    Date: Saturday, March 14, 2020 @ 20:14:31
  Author: shibumi
Revision: 597155

upgpkg: python-testinfra 5.0.0-1 move testinfra to community with disabled tests

Modified:
  python-testinfra/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-14 20:10:27 UTC (rev 597154)
+++ PKGBUILD	2020-03-14 20:14:31 UTC (rev 597155)
@@ -5,6 +5,7 @@
 
 pkgbase="python-testinfra"
 pkgname="python-testinfra"
+_pkgname="testinfra"
 pkgver=5.0.0
 pkgrel=1
 pkgdesc='Testinfra test your infrastructures'
@@ -12,26 +13,30 @@
 arch=('any')
 license=('Apache')
 depends=('python-six')
-makedepends=('git' 'python' 'python-setuptools' 'python-pbr' 'python-sphinx')
+makedepends=('python' 'python-setuptools' 'python-pbr' 'python-sphinx')
+#checkdepends=('python-mock' 'python-pytest-cov' 'python-pytest-xdist'
+#'python-paramiko' 'python-tornado' 'salt' 'ansible' 'python-pywinrm')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/philpep/testinfra/archive/${pkgver}.tar.gz")
-sha512sums=('')
+sha512sums=('915d4819b3d289b9b87dba614e2d5d9ca48e80c1e7dd0df60d64fad31f27c19b7914179422547c8eaab2e203f8d4a460972898599bc439348a6fb7cbb357991d')
 
 
+
 build() {
-    cd "${pkgname}-${pkgver}"
-    python setup.py build
+    cd "${_pkgname}-${pkgver}"
+    SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}" python setup.py build
     make -C doc html man
 }
 
-check() {
-    cd "${pkgname}-${pkgver}"
-    py.test
+# This checks are disabled, because salt, doesn't support python3 yet.
+# See also: https://bugs.archlinux.org/task/61129
+#check() {
+#    cd "${_pkgname}-${pkgver}"
+#    SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}" python setup.py test
+#}
 
-}
-
 package() {
-    cd "${pkgname}-${pkgver}"
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    cd "${_pkgname}-${pkgver}"
+    SETUPTOOLS_SCM_PRETEND_VERSION="${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