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

David Runge dvzrv at gemini.archlinux.org
Thu Sep 16 17:35:48 UTC 2021


    Date: Thursday, September 16, 2021 @ 17:35:47
  Author: dvzrv
Revision: 1016455

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-16 17:35:40 UTC (rev 1016454)
+++ PKGBUILD	2021-09-16 17:35:47 UTC (rev 1016455)
@@ -1,45 +0,0 @@
-# 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}"
-}

Copied: molecule-podman/repos/community-any/PKGBUILD (from rev 1016454, molecule-podman/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-16 17:35:47 UTC (rev 1016455)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule-podman
+pkgver=1.0.1
+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-ansible-compat' 'python-selinux')
+makedepends=('python-setuptools-scm' 'python-setuptools-scm-git-archive')
+checkdepends=('podman' '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=('0558e2e9289cce30cfaf0a032be718604010fb19d12d1111d480e59c373fd4285aff4cc1d0fdb750650a23577f1a19fcfdf1143904cc3bab1b19a861e966534a')
+b2sums=('cce76cbcfda5e3a6378be242889c5274e54c96858dba9b125253c82b10ef613fb2919ced9c12b06cd57a8a6cf3d9369b3b54e5ffabbe4dc8f94e512b3b74275a')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # remove additional pytest options
+  # remove fitler to raise warnings as errors: https://github.com/ansible-community/molecule/issues/3004
+  sed -e '/addopts/d' \
+      -e '/error/d' \
+      -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # disable tests that require the driver to be installed for the system
+  # version of molecule that we are testing with
+  pytest -v --ignore src/molecule_podman/test/test_func.py
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --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