[arch-commits] Commit in molecule-podman/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:42:21 UTC 2020
Date: Thursday, November 12, 2020 @ 17:42:21
Author: felixonmars
Revision: 752769
archrelease: copy trunk to community-staging-any
Added:
molecule-podman/repos/community-staging-any/
molecule-podman/repos/community-staging-any/PKGBUILD
(from rev 752768, molecule-podman/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: molecule-podman/repos/community-staging-any/PKGBUILD (from rev 752768, molecule-podman/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:42:21 UTC (rev 752769)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule-podman
+pkgver=0.3.0
+pkgrel=2
+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=('66ea0cca135c51b9563a865318c35ef36bc0f3ea24eefc8aea3c04f0ad57e84f5d45536268e57c48600d2449d3b409f89d2e80d548d0ab900de976d66b7ad3ce')
+b2sums=('98115b549f435079317a5d7e37a249357e67db2f4bf821148c6194b2d9e2ebf47f0fad93d94d99d969f5a028c0222b82d714f85562cba065153d969e7000625b')
+
+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 "lib/${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