[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Dec 14 13:47:22 UTC 2015
Date: Monday, December 14, 2015 @ 14:47:22
Author: fyan
Revision: 153251
archrelease: copy trunk to community-any
Added:
python-httpretty/repos/community-any/PKGBUILD
(from rev 153250, python-httpretty/trunk/PKGBUILD)
Deleted:
python-httpretty/repos/community-any/PKGBUILD
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 46 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-14 13:47:00 UTC (rev 153250)
+++ PKGBUILD 2015-12-14 13:47:22 UTC (rev 153251)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
-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' '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}
-
- # Fix the encoding issue
- sed -i 's/key=lambda (matcher, _): matcher.priority,/key=lambda matcher, _: matcher.priority,/' -i HTTPretty/httpretty/core.py
-}
-
-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"
-}
Copied: python-httpretty/repos/community-any/PKGBUILD (from rev 153250, python-httpretty/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-12-14 13:47:22 UTC (rev 153251)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.8.12
+_commit=f8e89e8ac5d7cd187b4ae65776c5069aafe35933
+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' '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#commit=$_commit")
+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