[arch-commits] Commit in python-httpretty/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Mon Dec 26 10:21:04 UTC 2016
Date: Monday, December 26, 2016 @ 10:21:04
Author: bpiotrowski
Revision: 202710
archrelease: copy trunk to community-staging-any
Added:
python-httpretty/repos/community-staging-any/
python-httpretty/repos/community-staging-any/PKGBUILD
(from rev 202709, python-httpretty/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev 202709, python-httpretty/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-26 10:21:04 UTC (rev 202710)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.8.14
+pkgrel=2
+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' '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=("git+https://github.com/gabrielfalcao/HTTPretty.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a HTTPretty{,-py2}
+}
+
+check() {
+ cd HTTPretty
+ nosetests3 -s tests || warning "Tests failed"
+
+ cd ../HTTPretty-py2
+ nosetests2 -s tests
+}
+
+package_python-httpretty() {
+ depends=('python-urllib3')
+
+ cd HTTPretty
+ python3 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
+}
+
+package_python2-httpretty() {
+ depends=('python2-urllib3')
+
+ 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