[arch-commits] Commit in python-requests/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 12 05:14:18 UTC 2017
Date: Friday, May 12, 2017 @ 05:14:17
Author: felixonmars
Revision: 295858
upgpkg: python-requests 2.14.2-1
Modified:
python-requests/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-12 04:20:27 UTC (rev 295857)
+++ PKGBUILD 2017-05-12 05:14:17 UTC (rev 295858)
@@ -4,7 +4,7 @@
pkgbase=python-requests
pkgname=('python-requests' 'python2-requests')
-pkgver=2.13.0
+pkgver=2.14.2
pkgrel=1
pkgdesc="Python HTTP for Humans"
arch=('any')
@@ -14,13 +14,13 @@
'python-urllib3' 'python2-urllib3' 'python-pysocks' 'python2-pysocks' '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"
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz"
certs.patch)
-sha256sums=('SKIP'
- 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+sha512sums=('a9f2b612bbfc4ce27c9a96bfac052f01329f2adbde7f188ee5507419f73252f282ebe68616df93a8c32680998c85ee7adf683893801df24439de8f0ed02af0a2'
+ 'b7b2e6aefb8e1ebfa24816bf1a48e45ef27244e23d75e2ac17fc6e8f8fb33846f55c68eca1a03077642dd1fae43b6dfed54e9f5aff382ea4fb4a70287c2fa9ed')
prepare() {
- cd "$srcdir"/requests
+ cd "$srcdir"/requests-$pkgver
patch -p1 -i "$srcdir"/certs.patch
sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
@@ -32,24 +32,24 @@
-i setup.py
cd "$srcdir"
- cp -a requests{,-py2}
- find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+ cp -a requests-$pkgver{,-py2}
+ find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
}
build() {
- cd "$srcdir"/requests
+ cd "$srcdir"/requests-$pkgver
python setup.py build
- cd "$srcdir"/requests-py2
+ cd "$srcdir"/requests-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/requests
+ cd "$srcdir"/requests-$pkgver
test -f "$(python -m requests.certs)"
py.test tests
- cd "$srcdir"/requests-py2
+ cd "$srcdir"/requests-$pkgver-py2
test -f "$(python2 -m requests.certs)"
py.test2 tests || warning "Tests failed"
}
@@ -58,7 +58,7 @@
depends=('python-urllib3' 'python-chardet')
optdepends=('python-pysocks: SOCKS proxy support')
- cd "$srcdir"/requests
+ cd "$srcdir"/requests-$pkgver
python setup.py install --skip-build -O1 --root="$pkgdir"
install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
@@ -69,6 +69,6 @@
'python2-grequests: asynchronous requests with gevent'
'python2-pysocks: SOCKS proxy support')
- cd "$srcdir"/requests-py2
+ cd "$srcdir"/requests-$pkgver-py2
python2 setup.py install --skip-build -O1 --root="$pkgdir"
}
More information about the arch-commits
mailing list