Date: Wednesday, April 12, 2023 @ 20:13:38
  Author: dvzrv
Revision: 1445019

upgpkg: ansible-bender 0.10.1-2: Rebuild against Python 3.11.

Run (some) tests in check(). Not all work due to missing subuid/subgid of 
builduser.
Sort dependencies alphabetically.
Add all direct dependencies.

Modified:
  ansible-bender/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-12 18:24:53 UTC (rev 1445018)
+++ PKGBUILD    2023-04-12 20:13:38 UTC (rev 1445019)
@@ -2,7 +2,7 @@
 
 pkgname=ansible-bender
 pkgver=0.10.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Build container images using Ansible playbooks'
 arch=('any')
 url='https://github.com/ansible-community/ansible-bender'
@@ -9,22 +9,28 @@
 license=('MIT')
 depends=(
   'ansible'
-  'python-yaml'
-  'python-tabulate'
+  'ansible-core'
+  'podman'
+  'buildah'
+  'python'
   'python-jsonschema'
+  'python-pyyaml'
   'python-setuptools'
-  'podman'
-  'buildah'
+  'python-tabulate'
 )
 makedepends=(
   'git'
   'python-build'
   'python-installer'
+  'python-setuptools-scm'
   'python-wheel'
-  'python-setuptools-scm'
 )
+checkdepends=(
+  'python-flexmock'
+  'python-pytest'
+)
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-b2sums=('0ab2287caff3cddb8c09b6ce97b6171117a548704b222e3a2bf383cf91416b77f0636939c23de04298675583d84d6a886a32982d343d9f5600e59630bc8e3866')
+b2sums=('1bc0347bb1e2f42732dd0afe81a96e8e025132f85850600f8c64dbad4e33fc14527805877cd196bec954f160a2a551f8566dc6a4831f4c8a3e81286acdd98daf')
 
 prepare() {
   cd "$pkgname-$pkgver"
@@ -40,6 +46,17 @@
   SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel 
--no-isolation
 }
 
+check() {
+  local pytest_options=(
+    -vv
+    --ignore tests/integration/
+    --ignore tests/functional/
+  )
+
+  cd "$pkgname-$pkgver"
+  pytest "${pytest_options[@]}"
+}
+
 package() {
   cd "$pkgname-$pkgver"
 

Reply via email to