[arch-commits] Commit in python-urllib3/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Apr 26 02:20:28 UTC 2017
Date: Wednesday, April 26, 2017 @ 02:20:27
Author: felixonmars
Revision: 294710
upgpkg: python-urllib3 1.21-1
Modified:
python-urllib3/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-26 01:46:51 UTC (rev 294709)
+++ PKGBUILD 2017-04-26 02:20:27 UTC (rev 294710)
@@ -6,7 +6,7 @@
pkgbase=python-urllib3
pkgname=(python-urllib3 python2-urllib3 python-urllib3-doc)
-pkgver=1.20
+pkgver=1.21
pkgrel=1
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
arch=("any")
@@ -14,34 +14,33 @@
license=("MIT")
makedepends=('python-setuptools' 'python2-setuptools' 'python2-sphinx' 'python-ndg-httpsclient'
'python2-ndg-httpsclient' 'python-pyasn1' 'python2-pyasn1' 'python-pyopenssl'
- 'python2-pyopenssl' 'python-pysocks' 'python2-pysocks' 'python-mock' 'python2-mock'
- 'git')
+ 'python2-pyopenssl' 'python-pysocks' 'python2-pysocks' 'python-mock' 'python2-mock')
checkdepends=('python-nose' 'python2-nose' 'python-tornado' 'python2-tornado' 'python-coverage'
'python2-coverage' 'python-psutil' 'python2-psutil')
-source=("git+https://github.com/shazow/urllib3.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/shazow/urllib3/archive/$pkgver.tar.gz")
+md5sums=('b317785471310e3879c3fac7da83ad2b')
prepare() {
- cp -a urllib3{,-py2}
+ cp -a urllib3-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/urllib3
+ cd "$srcdir"/urllib3-$pkgver
python setup.py build
- cd "$srcdir"/urllib3-py2
+ cd "$srcdir"/urllib3-$pkgver-py2
python2 setup.py build
# Build with Python 2 since autodoc produces errors on Python 3
- cd "$srcdir"/urllib3/docs
+ cd "$srcdir"/urllib3-$pkgver/docs
make SPHINXBUILD=sphinx-build2 html
}
check() {
- cd "$srcdir"/urllib3
+ cd "$srcdir"/urllib3-$pkgver
nosetests3 || warning "Tests failed"
- cd "$srcdir"/urllib3-py2
+ cd "$srcdir"/urllib3-$pkgver-py2
nosetests2 || warning "Tests failed"
}
@@ -49,7 +48,7 @@
depends=('python')
optdepends=('python-pysocks: SOCKS support')
- cd urllib3
+ cd urllib3-$pkgver
python setup.py install --root="$pkgdir"
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
@@ -58,7 +57,7 @@
depends=('python2')
optdepends=('python2-pysocks: SOCKS support')
- cd urllib3-py2
+ cd urllib3-$pkgver-py2
python2 setup.py install --root="$pkgdir"
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
@@ -66,7 +65,7 @@
package_python-urllib3-doc() {
pkgdesc="urllib3 Documentation"
- cd urllib3/docs
+ cd urllib3-$pkgver/docs
install -d "$pkgdir"/usr/share/doc
cp -r _build/html "$pkgdir"/usr/share/doc/python-urllib3
install -Dm644 ../LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
More information about the arch-commits
mailing list