[arch-commits] Commit in molecule-podman/repos (community-any community-any/PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Oct 20 08:30:55 UTC 2020


    Date: Tuesday, October 20, 2020 @ 08:30:54
  Author: dvzrv
Revision: 727524

archrelease: copy trunk to community-any

Added:
  molecule-podman/repos/community-any/
  molecule-podman/repos/community-any/PKGBUILD
    (from rev 727523, molecule-podman/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: molecule-podman/repos/community-any/PKGBUILD (from rev 727523, molecule-podman/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-10-20 08:30:54 UTC (rev 727524)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule-podman
+pkgver=0.2.3
+pkgrel=1
+pkgdesc="Molecule Podman Driver allows use of podman as backend for testing"
+arch=('any')
+url="https://github.com/ansible-community/molecule-podman"
+license=('MIT')
+depends=('molecule' 'python-selinux')
+makedepends=('python-setuptools_scm')
+checkdepends=('python-pytest' 'python-pytest-helpers-namespace')
+optdepends=('podman: for using a local podman setup')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('c0b7032e474463867d0ec3e0c9dd5dd0f706480d98619b48068a7e422ed6c1e15310c1ade199a7e9a359e4a765b9650f8aea89b653740ecb6a8bfd3a19d36180')
+b2sums=('a5915f474d28080c362bfc34355e5e1503edd16aa9cc0417c553b979df197d0f17339af928c9e879059189730e04b55dee7ddc3f7355b09782dfce22c50544f8')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  sed -e '/addopts/d' \
+      -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # NOTE: we can only run the detection test, as the other tests require
+  # running podman (which requires unprivileged_userns_clone)
+  pytest -v "${pkgname//-/_}/test/test_driver.py"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list