[arch-commits] Commit in molecule-podman/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Jan 17 18:28:05 UTC 2022


    Date: Monday, January 17, 2022 @ 18:28:05
  Author: dvzrv
Revision: 1107866

upgpkg: molecule-podman 1.1.0-1: Upgrade to 1.1.0.

Remove prepare() by passing no config to pytest.
Simplify quoting in file.
Do not break long lines.

Modified:
  molecule-podman/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++---------------------
 1 file changed, 13 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-17 18:27:35 UTC (rev 1107865)
+++ PKGBUILD	2022-01-17 18:28:05 UTC (rev 1107866)
@@ -1,29 +1,20 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=molecule-podman
-pkgver=1.0.1
-pkgrel=2
+pkgver=1.1.0
+pkgrel=1
 pkgdesc="Molecule Podman Driver allows use of podman as backend for testing"
-arch=('any')
+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')
+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')
+sha512sums=('230dc1750405fd76bff894bbb181095164de935527484e2f29a3cecfbfb68c7d4adab0f7de55b2dc4dd53ce1da006c37b1258b91c8f4944e019f726fb35d56aa')
+b2sums=('120b9377a30b5abde6fd9ed3765ed45cf71354ee9845f30aa867d0775a54726160b1a275d0ed0ff12ff0aab096e230b9c36615dddd3beee50047929df69732e8')
 
-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
@@ -34,7 +25,9 @@
   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
+  # remove additional pytest options
+  # remove fitler to raise warnings as errors: https://github.com/ansible-community/molecule/issues/3004
+  pytest -v -c /dev/null --ignore src/molecule_podman/test/test_func.py
 }
 
 package() {
@@ -41,6 +34,5 @@
   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}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list