[arch-commits] Commit in python-cloudflare/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Aug 26 13:55:36 UTC 2017


    Date: Saturday, August 26, 2017 @ 13:55:36
  Author: felixonmars
Revision: 254069

upgpkg: python-cloudflare 1.6.2-1

Modified:
  python-cloudflare/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-26 13:55:23 UTC (rev 254068)
+++ PKGBUILD	2017-08-26 13:55:36 UTC (rev 254069)
@@ -3,8 +3,7 @@
 
 pkgbase=python-cloudflare
 pkgname=('python-cloudflare' 'python2-cloudflare')
-pkgver=1.6.0
-_commit=3a035163d3613756e8bb3e4bc26fb3642091861c
+pkgver=1.6.2
 pkgrel=1
 pkgdesc='Python wrapper for the Cloudflare v4 API'
 arch=('any')
@@ -13,14 +12,10 @@
 makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
              'python-future' 'python2-future' 'python-yaml' 'python2-yaml')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/cloudflare/python-cloudflare/archive/$_commit.tar.gz")
-sha512sums=('40b222c70001c7cc9980ebe4ff92c75a85b22016ca01573bd417763fe47af7e4e60604f65e6dd3a6d21e5127727f24e2854c0a485bdef87ac16bd6d4b013cc51')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cloudflare/python-cloudflare/archive/$pkgver.tar.gz")
+sha512sums=('68679f92a0aab7b5b56b1b331da86d2a9bc783239f457f740686199a89008f943b6932146074de8fed43a9b8a8a5d341a4f8fa2ae05b36e4ae52fcee8ae346c6')
 
 prepare() {
-  mv python-cloudflare-{$_commit,$pkgver}
-
-  # https://github.com/cloudflare/python-cloudflare/issues/30
-  sed -i "s/'logger', //" python-cloudflare-$pkgver/setup.py
   cp -a python-cloudflare-$pkgver{,-py2}
 }
 
@@ -34,10 +29,10 @@
 
 check() {
   cd "$srcdir"/python-cloudflare-$pkgver
-  PYTHONPATH="$PWD/build/lib" python tests/test1.py
+  PYTHONPATH="$PWD/build/lib" pytest tests/test1.py
 
   cd "$srcdir"/python-cloudflare-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib" python2 tests/test1.py
+  PYTHONPATH="$PWD/build/lib" pytest2 tests/test1.py
 }
 
 package_python-cloudflare() {



More information about the arch-commits mailing list