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

Felix Yan fyan at archlinux.org
Sat Apr 30 04:30:21 UTC 2016


    Date: Saturday, April 30, 2016 @ 06:30:21
  Author: fyan
Revision: 266672

upgpkg: python-requests 2.10.0-1

Modified:
  python-requests/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-29 23:28:39 UTC (rev 266671)
+++ PKGBUILD	2016-04-30 04:30:21 UTC (rev 266672)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.9.1
+pkgver=2.10.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -11,15 +11,15 @@
 url="http://python-requests.org"
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet'
-             'python-urllib3' 'python2-urllib3')
-checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
-source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
+             'python-urllib3' 'python2-urllib3' 'git')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 'python-pytest-mock' 'python2-pytest-mock')
+source=("git+https://github.com/kennethreitz/requests.git#tag=v$pkgver"
         certs.patch)
-sha256sums=('c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f'
+sha256sums=('SKIP'
             'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
-    cd "$srcdir"/requests-$pkgver
+    cd "$srcdir"/requests
 
     patch -p1 -i "$srcdir"/certs.patch
     sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
@@ -31,24 +31,24 @@
         -i setup.py
 
     cd "$srcdir"
-    cp -a requests-$pkgver{,-py2}
-    find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+    cp -a requests{,-py2}
+    find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
 }
 
 build() {
-    cd "$srcdir"/requests-$pkgver
+    cd "$srcdir"/requests
     python setup.py build
 
-    cd "$srcdir"/requests-$pkgver-py2
+    cd "$srcdir"/requests-py2
     python2 setup.py build
 }
 
 check() {
-    cd "$srcdir"/requests-$pkgver
+    cd "$srcdir"/requests
     test -f "$(python -m requests.certs)"
     py.test
 
-    cd "$srcdir"/requests-$pkgver-py2
+    cd "$srcdir"/requests-py2
     test -f "$(python2 -m requests.certs)"
     py.test2
 }
@@ -56,7 +56,7 @@
 package_python-requests() {
     depends=('python-urllib3' 'python-chardet')
 
-    cd "$srcdir"/requests-$pkgver
+    cd "$srcdir"/requests
     python setup.py install --skip-build -O1 --root="$pkgdir"
     install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -66,6 +66,6 @@
     optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
                 'python2-grequests: asynchronous requests with gevent')
 
-    cd "$srcdir"/requests-$pkgver-py2
+    cd "$srcdir"/requests-py2
     python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }



More information about the arch-commits mailing list