[arch-commits] Commit in python-urllib3/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Oct 23 02:33:09 UTC 2015
Date: Friday, October 23, 2015 @ 04:33:09
Author: fyan
Revision: 249665
upgpkg: python-urllib3 1.12-3
provide docs (FS#45691)
Modified:
python-urllib3/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-23 02:30:10 UTC (rev 249664)
+++ PKGBUILD 2015-10-23 02:33:09 UTC (rev 249665)
@@ -5,17 +5,19 @@
# Contributor: BorgHunter <borghunter at gmail dot com>
pkgbase=python-urllib3
-pkgname=(python-urllib3 python2-urllib3)
+pkgname=(python-urllib3 python2-urllib3 python-urllib3-doc)
pkgver=1.12
_commit=e91c16169e463118ce662345461933bb3a7dedef
-pkgrel=2
+pkgrel=3
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
arch=("any")
url="https://github.com/shazow/urllib3"
license=("MIT")
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-coverage' 'python2-coverage'
- 'python-tornado' 'python2-tornado' 'twine' 'python2-twine' 'python2-pyopenssl')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-sphinx' 'git'
+ 'python2-ndg-httpsclient')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock'
+ 'python-coverage' 'python2-coverage' 'python-tornado' 'python2-tornado'
+ 'twine' 'python2-twine' 'python2-pyopenssl')
source=("git+https://github.com/shazow/urllib3.git#commit=$_commit")
md5sums=('SKIP')
@@ -24,20 +26,24 @@
}
build() {
- cd urllib3
+ cd "$srcdir/urllib3"
python setup.py build
- cd ../urllib3-py2
+ cd "$srcdir/urllib3-py2"
python2 setup.py build
+
+ # Build with Python 2 since no ndg-httpsclient present for Python 3
+ cd "$srcdir/urllib3/docs"
+ make SPHINXBUILD=sphinx-build2 html
}
check() {
# Expected failure when asking for external resources
- cd urllib3
+ cd "$srcdir/urllib3"
nosetests3 || warning "Tests failed"
- cd ../urllib3-py2
+ cd "$srcdir/urllib3-py2"
nosetests2 || warning "Tests failed"
}
@@ -56,3 +62,12 @@
python2 setup.py install --root="${pkgdir}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
+
+package_python-urllib3-doc() {
+ pkgdesc="urllib3 Documentation"
+
+ cd urllib3/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"
+}
\ No newline at end of file
More information about the arch-commits
mailing list