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

David Runge dvzrv at gemini.archlinux.org
Fri Apr 8 15:26:17 UTC 2022


    Date: Friday, April 8, 2022 @ 15:26:17
  Author: dvzrv
Revision: 1182993

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

Switch to PEP517.

Modified:
  molecule-podman/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-08 14:20:00 UTC (rev 1182992)
+++ PKGBUILD	2022-04-08 15:26:17 UTC (rev 1182993)
@@ -1,7 +1,7 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=molecule-podman
-pkgver=1.1.0
+pkgver=2.0.0
 pkgrel=1
 pkgdesc="Molecule Podman Driver allows use of podman as backend for testing"
 arch=(any)
@@ -8,31 +8,30 @@
 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)
+makedepends=(python-build python-installer python-pip python-setuptools-scm python-setuptools-scm-git-archive python-wheel)
+checkdepends=(ansible-core 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=('230dc1750405fd76bff894bbb181095164de935527484e2f29a3cecfbfb68c7d4adab0f7de55b2dc4dd53ce1da006c37b1258b91c8f4944e019f726fb35d56aa')
-b2sums=('120b9377a30b5abde6fd9ed3765ed45cf71354ee9845f30aa867d0775a54726160b1a275d0ed0ff12ff0aab096e230b9c36615dddd3beee50047929df69732e8')
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
+sha512sums=('b1e7a458eab5c7d6d5055353fe14e1d9c4c56f7a3579ebf29e3225427d1f4a238a70fcbf71fda1e4de36aa531221c3915314baec1e2bb85782dcf21e35f7d827')
+b2sums=('e9ee4cb982afcb8289390a34ac839929cf5bd9640e7e72ae49a1eaf61f536c14f6e1c6d7938f36c48b46b0182ef31403dd636e54bd730fd11dbb131bff0e0b1a')
 
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd $pkgname-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
+  cd $pkgname-$pkgver
   # disable tests that require the driver to be installed for the system
   # version of molecule that we are testing with
   # 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
+  pytest -vv -c /dev/null --ignore src/molecule_podman/test/test_func.py
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --optimize=1 --root="${pkgdir}"
+  cd $pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
   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