[arch-commits] Commit in python-cloudflare/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 04:11:43 UTC 2019


    Date: Saturday, October 26, 2019 @ 04:11:42
  Author: felixonmars
Revision: 519930

archrelease: copy trunk to community-staging-any

Added:
  python-cloudflare/repos/community-staging-any/
  python-cloudflare/repos/community-staging-any/PKGBUILD
    (from rev 519929, python-cloudflare/trunk/PKGBUILD)

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

Copied: python-cloudflare/repos/community-staging-any/PKGBUILD (from rev 519929, python-cloudflare/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 04:11:42 UTC (rev 519930)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cloudflare
+pkgver=2.3.0
+pkgrel=2
+pkgdesc='Python wrapper for the Cloudflare v4 API'
+arch=('any')
+license=('MIT')
+url='https://github.com/cloudflare/python-cloudflare'
+depends=('python-requests' 'python-future' 'python-yaml' 'python-jsonlines')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cloudflare/python-cloudflare/archive/$pkgver.tar.gz")
+sha512sums=('f88ce284a3122ca1c6ff35a4fbc4df37ef65f6555e0d93140bfe4b71f461e5d94ca7afbf5a2fa75825fa02070d50059ec7dd98473756f39739731c00fd8e6002')
+
+build() {
+  cd python-cloudflare-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-cloudflare-$pkgver
+  PYTHONPATH="$PWD/build/lib" pytest tests/test1.py
+}
+
+package() {
+  cd python-cloudflare-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  rm -r "$pkgdir"/usr/lib/python3.8/site-packages/examples
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list