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

Felix Yan felixonmars at archlinux.org
Fri Mar 24 06:54:36 UTC 2017


    Date: Friday, March 24, 2017 @ 06:54:35
  Author: felixonmars
Revision: 218616

upgpkg: python-qiniu 7.1.2-1

Modified:
  python-qiniu/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-24 06:53:17 UTC (rev 218615)
+++ PKGBUILD	2017-03-24 06:54:35 UTC (rev 218616)
@@ -3,20 +3,19 @@
 
 pkgbase=python-qiniu
 pkgname=(python-qiniu python2-qiniu)
-pkgver=7.1.1
-_commit=3800c522aeef567154cc1066fc314e53529d6857
+pkgver=7.1.2
 pkgrel=1
 pkgdesc="Qiniu Resource Storage SDK for Python"
 arch=('any')
 url='https://github.com/qiniu/python-sdk'
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("qiniu::git+https://github.com/qiniu/python-sdk#commit=$_commit")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/qiniu/python-sdk/archive/v$pkgver.tar.gz")
+sha512sums=('23db003e752c6303f971f672187f4063800059ebea94fbaa1dfad0092dd40d22917ed8ccc08caa89a566a3a14dc4159fa0dc0426ee5abd9ac5aee3580d1dd71a')
 
 prepare() {
-  cp -a qiniu{,-py2}
+  cp -a python-sdk-$pkgver{,-py2}
 }
 
 check() {
@@ -27,17 +26,17 @@
   export QINIU_TEST_DOMAIN="pythonsdk.qiniudn.com"
   export QINIU_TEST_ENV="travis"
 
-  cd "$srcdir"/qiniu
-  python setup.py ptr
+  cd "$srcdir"/python-sdk-$pkgver
+  python setup.py pytest
 
-  cd "$srcdir"/qiniu-py2
-  python2 setup.py ptr
+  cd "$srcdir"/python-sdk-$pkgver-py2
+  python2 setup.py pytest
 }
 
 package_python-qiniu() {
   depends=('python-requests' 'python-setuptools')
 
-  cd qiniu
+  cd python-sdk-$pkgver
   python setup.py install -O1 --root "$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
@@ -46,7 +45,7 @@
 package_python2-qiniu() {
   depends=('python2-requests' 'python2-setuptools')
 
-  cd qiniu-py2
+  cd python-sdk-$pkgver-py2
   python2 setup.py install -O1 --root "$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE



More information about the arch-commits mailing list