[arch-commits] Commit in gandi.cli/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri Dec 3 18:01:41 UTC 2021


    Date: Friday, December 3, 2021 @ 18:01:41
  Author: dvzrv
Revision: 1064850

Add fixes for python 3.10.

Disable tests that just raise due hardcoded help text output.
Install bash completion to correct location.
Simplify quoting in file.

Modified:
  gandi.cli/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-03 17:52:21 UTC (rev 1064849)
+++ PKGBUILD	2021-12-03 18:01:41 UTC (rev 1064850)
@@ -4,12 +4,12 @@
 pkgver=1.6
 pkgrel=2
 pkgdesc="Gandi command line interface"
-arch=('any')
+arch=(any)
 url="https://cli.gandi.net"
-license=('GPL3')
-depends=('python-click' 'python-ipy' 'python-requests' 'python-setuptools' 'python-yaml')
-makedepends=('python-docutils')
-checkdepends=('docker' 'openssh' 'openssl' 'python-pytest')
+license=(GPL3)
+depends=(python-click python-ipy python-requests python-setuptools python-yaml)
+makedepends=(python-docutils)
+checkdepends=(docker openssh openssl python-pytest)
 optdepends=('docker: docker integration'
             'openssh: ssh integration'
             'openssl: certificate creation')
@@ -31,17 +31,13 @@
 
 check() {
   cd "$pkgname-$pkgver"
-  pytest -v
+  pytest -v -k "not test_list_attached_detached_ko and not test_update_kernel_unavailable and not test_create_no_value_and_no_filename_ko and not test_create_value_and_filename_ko"
 }
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 {CHANGES.rst,{CONTRIBUTING,README}.md} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 {CHANGES.rst,{CONTRIBUTING,README}.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 gandi.1 -t "${pkgdir}/usr/share/man/man1/"
-  install -vDm 644 gandi.completion \
-    -t "${pkgdir}/usr/share/bash-completion/completions/gandi"
+  install -vDm 644 gandi.completion "${pkgdir}/usr/share/bash-completion/completions/gandi"
 }



More information about the arch-commits mailing list