[arch-commits] Commit in gandi.cli/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Sep 23 12:34:33 UTC 2020


    Date: Wednesday, September 23, 2020 @ 12:34:31
  Author: dvzrv
Revision: 711496

archrelease: copy trunk to community-any

Added:
  gandi.cli/repos/community-any/PKGBUILD
    (from rev 711495, gandi.cli/trunk/PKGBUILD)
Deleted:
  gandi.cli/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   88 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 47 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-23 12:34:12 UTC (rev 711495)
+++ PKGBUILD	2020-09-23 12:34:31 UTC (rev 711496)
@@ -1,41 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-
-pkgname=gandi.cli
-pkgver=1.5
-pkgrel=3
-pkgdesc="Gandi command line interface"
-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' 'python-pytest-cov')
-optdepends=('docker: docker integration'
-            'openssh: ssh integration'
-            'openssl: certificate creation')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('5681d7e84db4efadfd35874de080a719a97330bea5732d7dc271dfc50e6075a1392deb30b6b0adb5456cdf5d70dc963088c153bf56829e678b97d5b7a5579233')
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-  rst2man --no-generator gandicli.man.rst > gandi.1
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  py.test
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --prefix=/usr \
-                          --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"
-}

Copied: gandi.cli/repos/community-any/PKGBUILD (from rev 711495, gandi.cli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-23 12:34:31 UTC (rev 711496)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=gandi.cli
+pkgver=1.6
+pkgrel=1
+pkgdesc="Gandi command line interface"
+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')
+optdepends=('docker: docker integration'
+            'openssh: ssh integration'
+            'openssl: certificate creation')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('10dbe2fe6a91f62e19de8beb9648c913401e1b27508b19040a190b4182f7010ffce0d373e063c1fd9816c1113bb8cd28c766b76b5afae0b99531fb86d59333a9')
+b2sums=('7e4f489a6e5c40193b0e8abb2dfb0228a9e785a338d360a19cdf3dcc7ea862d355bc56ecc5ba4b05fb03d3d80b32af551c01f3a92bab11ad3d998475ba22c456')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # we do not need to run coverage during tests
+  sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+  rst2man --no-generator gandicli.man.rst > gandi.1
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  pytest -v
+}
+
+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}"
+  install -vDm 644 gandi.1 -t "${pkgdir}/usr/share/man/man1/"
+  install -vDm 644 gandi.completion \
+    -t "${pkgdir}/usr/share/bash-completion/completions/gandi"
+}



More information about the arch-commits mailing list