[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Tue Oct 20 08:19:42 UTC 2020


    Date: Tuesday, October 20, 2020 @ 08:19:42
  Author: dvzrv
Revision: 727512

Add molecule-podman, as optdepends to molecule.

With molecule > 3.1 the drivers have been moved to separate projects.

Added:
  molecule-podman/
  molecule-podman/repos/
  molecule-podman/trunk/
  molecule-podman/trunk/PKGBUILD

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

Added: molecule-podman/trunk/PKGBUILD
===================================================================
--- molecule-podman/trunk/PKGBUILD	                        (rev 0)
+++ molecule-podman/trunk/PKGBUILD	2020-10-20 08:19:42 UTC (rev 727512)
@@ -0,0 +1,44 @@
+# 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' 'podman' 'python-selinux')
+makedepends=('python-setuptools_scm')
+checkdepends=('python-pytest' 'python-pytest-helpers-namespace')
+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