[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Dec 14 02:19:52 UTC 2015
Date: Monday, December 14, 2015 @ 03:19:52
Author: fyan
Revision: 153209
upgpkg: python-httpretty 0.8.11-1
Modified:
python-httpretty/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-13 22:16:33 UTC (rev 153208)
+++ PKGBUILD 2015-12-14 02:19:52 UTC (rev 153209)
@@ -3,39 +3,38 @@
pkgbase=python-httpretty
pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.10
-pkgrel=2
+pkgver=0.8.11
+pkgrel=1
pkgdesc="HTTP client mock for Python"
arch=('any')
url="http://github.com/gabrielfalcao/httpretty"
license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 'python2-setuptools')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 'python2-setuptools' 'git')
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=('9c130b16726cbf85159574ae5761bce7')
+source=("git+https://github.com/gabrielfalcao/HTTPretty.git#tag=$pkgver")
+md5sums=('SKIP')
prepare() {
- cp -r "httpretty-$pkgver"{,-py2}
+ cp -a HTTPretty{,-py2}
# Fix the encoding issue
- sed -i "78s/f)).read()/f), encoding='utf8').read()/" httpretty-$pkgver/setup.py
+ sed -i 's/key=lambda (matcher, _): matcher.priority,/key=lambda matcher, _: matcher.priority,/' -i HTTPretty/httpretty/core.py
}
check() {
- cd httpretty-$pkgver
- # Disabled due to hanging
- #nosetests3 -s tests
+ cd HTTPretty
+ nosetests3 -s tests || warning "Tests failed"
- cd ../httpretty-$pkgver-py2
- nosetests2 -s tests || warning "Tests failed"
+ cd ../HTTPretty-py2
+ nosetests2 -s tests
}
package_python-httpretty() {
depends=('python-urllib3')
- cd httpretty-$pkgver
+ cd HTTPretty
python3 setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
}
@@ -43,8 +42,7 @@
package_python2-httpretty() {
depends=('python2-urllib3')
- cd httpretty-$pkgver-py2
+ cd HTTPretty-py2
python2 setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 COPYING "$pkgdir/usr/share/licenses/python2-httpretty/COPYING"
}
-
More information about the arch-commits
mailing list