[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Thu Jun 19 04:45:27 UTC 2014
Date: Thursday, June 19, 2014 @ 06:45:27
Author: fyan
Revision: 113341
upgpkg: python-httpretty 0.8.1-1
Modified:
python-httpretty/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-19 04:22:31 UTC (rev 113340)
+++ PKGBUILD 2014-06-19 04:45:27 UTC (rev 113341)
@@ -3,21 +3,25 @@
pkgbase=python-httpretty
pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.0
+pkgver=0.8.1
pkgrel=1
pkgdesc="HTTP client mock for Python"
arch=('any')
url="http://github.com/gabrielfalcao/httpretty"
license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-requests' 'python2-requests')
checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'python-mock' 'python2-mock'
'python-sure' 'python2-sure' 'python-tornado' 'python2-tornado' 'python-requests' 'python2-requests'
'python-httplib2' 'python2-httplib2')
source=("https://pypi.python.org/packages/source/h/httpretty/httpretty-$pkgver.tar.gz")
-md5sums=('2d5ea5205c358fa489e6de6fc74c00fa')
+md5sums=('8f4d4339711551ff8b3d94bf4389754c')
prepare() {
cp -r "httpretty-$pkgver"{,-py2}
+
+ # Fix the encoding issue
+ sed -i "78s/f)).read()/f), encoding='utf8').read()/" httpretty-$pkgver/setup.py
+ sed -i "88s/readme.rst/README.rst/" httpretty-$pkgver{,-py2}/setup.py
}
check() {
@@ -26,12 +30,11 @@
#nosetests3 -s tests
cd ../httpretty-$pkgver-py2
- nosetests2 -s tests || : # Failing some tests
+ nosetests2 -s tests || warning "Tests failed"
}
package_python-httpretty() {
- depends=('python')
- optdepends=('python-urllib3: for recording actual requests')
+ depends=('python-urllib3' 'python-requests')
cd httpretty-$pkgver
python3 setup.py install --root="${pkgdir}" --optimize=1
@@ -39,8 +42,7 @@
}
package_python2-httpretty() {
- depends=('python2')
- optdepends=('python2-urllib3: for recording actual requests')
+ depends=('python2-urllib3' 'python2-requests')
cd httpretty-$pkgver-py2
python2 setup.py install --root="${pkgdir}" --optimize=1
More information about the arch-commits
mailing list