Date: Friday, April 24, 2015 @ 10:39:53 Author: fyan Revision: 237990
upgpkg: python-requests 2.6.2-1 Modified: python-requests/trunk/PKGBUILD ----------+ PKGBUILD | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-04-24 07:39:12 UTC (rev 237989) +++ PKGBUILD 2015-04-24 08:39:53 UTC (rev 237990) @@ -1,9 +1,10 @@ # $Id$ -# Maintainer: Massimiliano Torromeo <[email protected]> +# Maintainer: Felix Yan <[email protected]> +# Contributor: Massimiliano Torromeo <[email protected]> pkgbase=python-requests pkgname=('python-requests' 'python2-requests') -pkgver=2.6.0 +pkgver=2.6.2 pkgrel=1 pkgdesc="Python HTTP for Humans" arch=('any') @@ -12,7 +13,7 @@ makedepends=('python-setuptools' 'python2-setuptools') source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz certs.patch) -sha256sums=('1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75' +sha256sums=('0577249d4b6c4b11fd97c28037e98664bfaa0559022fee7bcef6b752a106e505' 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7') prepare() { @@ -20,17 +21,18 @@ patch -p1 -i "$srcdir"/certs.patch sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in rm -f requests/cacert.pem + + cd "$srcdir" + cp -a requests-$pkgver{,-py2} + find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} + } build() { cd "$srcdir"/requests-$pkgver + python setup.py build - rm -rf ../buildpy3; mkdir ../buildpy3 - python setup.py build -b ../buildpy3 - - rm -rf ../buildpy2; mkdir ../buildpy2 - python2 setup.py build -b ../buildpy2 - find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} + + cd "$srcdir"/requests-$pkgver-py2 + python2 setup.py build } check() { @@ -42,7 +44,6 @@ depends=('python') cd "$srcdir"/requests-$pkgver - rm -rf build; ln -s ../buildpy3 build python setup.py install --skip-build -O1 --root="$pkgdir" install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -52,7 +53,6 @@ optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support' 'python2-grequests: asynchronous requests with gevent') - cd "$srcdir"/requests-$pkgver - rm -rf build; ln -s ../buildpy2 build + cd "$srcdir"/requests-$pkgver-py2 python2 setup.py install --skip-build -O1 --root="$pkgdir" }
