[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2020-03-16 Thread Balló György via arch-commits
Date: Monday, March 16, 2020 @ 22:00:08
  Author: bgyorgy
Revision: 599877

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 599876, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |   78 -
 1 file changed, 31 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-03-16 22:00:04 UTC (rev 599876)
+++ PKGBUILD2020-03-16 22:00:08 UTC (rev 599877)
@@ -1,47 +0,0 @@
-# Maintainer: Felix Yan 
-
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.7
-_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
-pkgrel=1
-pkgdesc="HTTP client mock for Python"
-arch=('any')
-url="https://github.com/gabrielfalcao/httpretty;
-license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools')
-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'
-  'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 
'python2-rednose')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz;)
-sha512sums=('6a20c7c78b402ed2c38719dc94490495852d83284fba101a6f7448940afcd62035a90ec9955b6abcc711e2791331404bdf6e1e2f7979186c6513a74fd9273de3')
-
-prepare() {
-  mv HTTPretty-{$_commit,$pkgver}
-  cp -a HTTPretty-$pkgver{,-py2}
-}
-
-check() {
-  cd HTTPretty-$pkgver
-  nosetests3 -s tests
-
-  cd ../HTTPretty-$pkgver-py2
-  nosetests2 -s tests
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd HTTPretty-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}
-
-package_python2-httpretty() {
-  depends=('python2-urllib3')
-
-  cd HTTPretty-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}

Copied: python-httpretty/repos/community-any/PKGBUILD (from rev 599876, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2020-03-16 22:00:08 UTC (rev 599877)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-httpretty
+pkgver=0.9.7
+_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
+pkgrel=2
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="https://github.com/gabrielfalcao/httpretty;
+license=('MIT')
+depends=('python-urllib3')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-coverage' 'python-mock' 'python-sure' 
'python-tornado'
+  'python-requests' 'python-httplib2' 'python-nose-randomly' 
'python-rednose')
+source=("$pkgname-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz;)
+sha512sums=('6a20c7c78b402ed2c38719dc94490495852d83284fba101a6f7448940afcd62035a90ec9955b6abcc711e2791331404bdf6e1e2f7979186c6513a74fd9273de3')
+
+prepare() {
+  mv HTTPretty-{$_commit,$pkgver}
+}
+
+check() {
+  cd HTTPretty-$pkgver
+  nosetests3 -s tests
+}
+
+package_python-httpretty() {
+  cd HTTPretty-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2020-02-13 Thread Felix Yan via arch-commits
Date: Thursday, February 13, 2020 @ 18:05:54
  Author: felixonmars
Revision: 570754

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 570753, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |   92 +++--
 1 file changed, 47 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-02-13 18:05:39 UTC (rev 570753)
+++ PKGBUILD2020-02-13 18:05:54 UTC (rev 570754)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan 
-
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.6
-pkgrel=3
-pkgdesc="HTTP client mock for Python"
-arch=('any')
-url="https://github.com/gabrielfalcao/httpretty;
-license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools')
-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'
-  'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 
'python2-rednose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
-sha512sums=('6d4274961d4ff2475c4035e0174694a851640dcd383727de5508f342827f77143b09a7a2c644978d1ca5932945fec75a85187ca6979dbfd2e109e3540467abf0')
-
-prepare() {
-  cp -a HTTPretty-$pkgver{,-py2}
-}
-
-check() {
-  cd HTTPretty-$pkgver
-  nosetests3 -s tests || warning "Tests failed"
-
-  cd ../HTTPretty-$pkgver-py2
-  nosetests2 -s tests
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd HTTPretty-$pkgver
-  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-$pkgver-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 570753, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2020-02-13 18:05:54 UTC (rev 570754)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.9.7
+_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
+pkgrel=1
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="https://github.com/gabrielfalcao/httpretty;
+license=('MIT')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools')
+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'
+  'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 
'python2-rednose')
+source=("$pkgbase-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz;)
+sha512sums=('6a20c7c78b402ed2c38719dc94490495852d83284fba101a6f7448940afcd62035a90ec9955b6abcc711e2791331404bdf6e1e2f7979186c6513a74fd9273de3')
+
+prepare() {
+  mv HTTPretty-{$_commit,$pkgver}
+  cp -a HTTPretty-$pkgver{,-py2}
+}
+
+check() {
+  cd HTTPretty-$pkgver
+  nosetests3 -s tests
+
+  cd ../HTTPretty-$pkgver-py2
+  nosetests2 -s tests
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd HTTPretty-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-httpretty() {
+  depends=('python2-urllib3')
+
+  cd HTTPretty-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2018-11-26 Thread Felix Yan via arch-commits
Date: Monday, November 26, 2018 @ 19:07:57
  Author: felixonmars
Revision: 409806

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 409805, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |   91 ++---
 1 file changed, 45 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2018-11-26 19:07:39 UTC (rev 409805)
+++ PKGBUILD2018-11-26 19:07:57 UTC (rev 409806)
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.5
-pkgrel=2
-pkgdesc="HTTP client mock for Python"
-arch=('any')
-url="https://github.com/gabrielfalcao/httpretty;
-license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools')
-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'
-  'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 
'python2-rednose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
-sha512sums=('6e830875cf51f4e9b2e248aa3395caf3950a05ce1df493d9e8b9f5cc9a2d1d1140e69d6e28f6c23acb388c91ef17d737d036736797e33186d20a25d21434184e')
-
-prepare() {
-  cp -a HTTPretty-$pkgver{,-py2}
-}
-
-check() {
-  cd HTTPretty-$pkgver
-  nosetests3 -s tests || warning "Tests failed"
-
-  cd ../HTTPretty-$pkgver-py2
-  nosetests2 -s tests
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd HTTPretty-$pkgver
-  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-$pkgver-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 409805, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2018-11-26 19:07:57 UTC (rev 409806)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.9.6
+pkgrel=1
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="https://github.com/gabrielfalcao/httpretty;
+license=('MIT')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools')
+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'
+  'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 
'python2-rednose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
+sha512sums=('6d4274961d4ff2475c4035e0174694a851640dcd383727de5508f342827f77143b09a7a2c644978d1ca5932945fec75a85187ca6979dbfd2e109e3540467abf0')
+
+prepare() {
+  cp -a HTTPretty-$pkgver{,-py2}
+}
+
+check() {
+  cd HTTPretty-$pkgver
+  nosetests3 -s tests || warning "Tests failed"
+
+  cd ../HTTPretty-$pkgver-py2
+  nosetests2 -s tests
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd HTTPretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/python2-httpretty/COPYING"
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2016-01-18 Thread Felix Yan
Date: Tuesday, January 19, 2016 @ 02:56:25
  Author: fyan
Revision: 157551

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 157550, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |   91 ++---
 1 file changed, 45 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2016-01-19 01:56:08 UTC (rev 157550)
+++ PKGBUILD2016-01-19 01:56:25 UTC (rev 157551)
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-
-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"
-}

Copied: python-httpretty/repos/community-any/PKGBUILD (from rev 157550, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2016-01-19 01:56:25 UTC (rev 157551)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.8.14
+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}
+}
+
+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"
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-12-14 Thread Felix Yan
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
===
--- PKGBUILD2015-12-14 13:47:00 UTC (rev 153250)
+++ PKGBUILD2015-12-14 13:47:22 UTC (rev 153251)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-
-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)
+++ PKGBUILD2015-12-14 13:47:22 UTC (rev 153251)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+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"
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-12-13 Thread Felix Yan
Date: Monday, December 14, 2015 @ 03:20:15
  Author: fyan
Revision: 153210

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 153209, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |   98 +
 1 file changed, 48 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-12-14 02:19:52 UTC (rev 153209)
+++ PKGBUILD2015-12-14 02:20:15 UTC (rev 153210)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.10
-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')
-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')
-
-prepare() {
-  cp -r "httpretty-$pkgver"{,-py2}
-
-  # Fix the encoding issue
-  sed -i "78s/f)).read()/f), encoding='utf8').read()/" 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning "Tests failed"
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 153209, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-12-14 02:20:15 UTC (rev 153210)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+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"
+}


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-08-07 Thread Felix Yan
Date: Friday, August 7, 2015 @ 09:33:12
  Author: fyan
Revision: 138051

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 138050, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-08-07 07:32:49 UTC (rev 138050)
+++ PKGBUILD2015-08-07 07:33:12 UTC (rev 138051)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.9
-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')
-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=('9c182d372a6be0e338aef2133791d377')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 138050, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-08-07 07:33:12 UTC (rev 138051)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.10
+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')
+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')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-08-02 Thread Felix Yan
Date: Monday, August 3, 2015 @ 05:58:19
  Author: fyan
Revision: 137762

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 137761, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-08-03 03:58:04 UTC (rev 137761)
+++ PKGBUILD2015-08-03 03:58:19 UTC (rev 137762)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.8
-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')
-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=('0b95e48c8466ed9dc157070229651a6b')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 137761, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-08-03 03:58:19 UTC (rev 137762)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.9
+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')
+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=('9c182d372a6be0e338aef2133791d377')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-03-11 Thread Felix Yan
Date: Thursday, March 12, 2015 @ 05:00:12
  Author: fyan
Revision: 129090

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 129089, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-03-12 03:59:44 UTC (rev 129089)
+++ PKGBUILD2015-03-12 04:00:12 UTC (rev 129090)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.7
-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')
-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=('753b82f3bf632fbfc595816a0f6691f0')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 129089, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-03-12 04:00:12 UTC (rev 129090)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.8
+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')
+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=('0b95e48c8466ed9dc157070229651a6b')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-02-21 Thread Felix Yan
Date: Sunday, February 22, 2015 @ 05:59:02
  Author: fyan
Revision: 128095

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 128094, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-02-22 04:58:40 UTC (rev 128094)
+++ PKGBUILD2015-02-22 04:59:02 UTC (rev 128095)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.6
-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')
-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=('d45e7e831b6e66974ba231453a715f39')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 128094, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-02-22 04:59:02 UTC (rev 128095)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.7
+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')
+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=('753b82f3bf632fbfc595816a0f6691f0')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-02-21 Thread Felix Yan
Date: Saturday, February 21, 2015 @ 15:29:28
  Author: fyan
Revision: 128069

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 128068, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-02-21 14:29:07 UTC (rev 128068)
+++ PKGBUILD2015-02-21 14:29:28 UTC (rev 128069)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.5
-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')
-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=('561e870731c387c2856195bf844eafb2')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 128068, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-02-21 14:29:28 UTC (rev 128069)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.6
+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')
+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=('d45e7e831b6e66974ba231453a715f39')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-02-19 Thread Felix Yan
Date: Friday, February 20, 2015 @ 06:12:32
  Author: fyan
Revision: 128009

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 128008, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-02-20 05:12:15 UTC (rev 128008)
+++ PKGBUILD2015-02-20 05:12:32 UTC (rev 128009)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@archlinux.org
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.4
-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')
-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=('8bd2bfce2ff4c464ef25951e1b500469')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 128008, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-02-20 05:12:32 UTC (rev 128009)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.5
+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')
+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=('561e870731c387c2856195bf844eafb2')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2015-02-03 Thread Felix Yan
Date: Wednesday, February 4, 2015 @ 04:45:42
  Author: fyan
Revision: 127068

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 127067, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 ++---
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2015-02-04 03:45:18 UTC (rev 127067)
+++ PKGBUILD2015-02-04 03:45:42 UTC (rev 127068)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.3
-pkgrel=1
-pkgdesc=HTTP client mock for Python
-arch=('any')
-url=http://github.com/gabrielfalcao/httpretty;
-license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3')
-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=('50b02560a49fe928c90c53a49791f621')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-
-  # Fix the encoding issue
-  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3')
-
-  cd httpretty-$pkgver
-  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-$pkgver-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 127067, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2015-02-04 03:45:42 UTC (rev 127068)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@archlinux.org
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.4
+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')
+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=('8bd2bfce2ff4c464ef25951e1b500469')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+


[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2014-06-19 Thread Felix Yan
Date: Friday, June 20, 2014 @ 03:20:45
  Author: fyan
Revision: 113372

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 113371, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  101 ++---
 1 file changed, 50 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2014-06-20 01:20:07 UTC (rev 113371)
+++ PKGBUILD2014-06-20 01:20:45 UTC (rev 113372)
@@ -1,51 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-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' '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=('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() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || warning Tests failed
-}
-
-package_python-httpretty() {
-  depends=('python-urllib3' 'python-requests')
-
-  cd httpretty-$pkgver
-  python3 setup.py install --root=${pkgdir} --optimize=1
-  install -Dm644 COPYING $pkgdir/usr/share/licenses/python-httpretty/COPYING
-}
-
-package_python2-httpretty() {
-  depends=('python2-urllib3' 'python2-requests')
-
-  cd httpretty-$pkgver-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 113371, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2014-06-20 01:20:45 UTC (rev 113372)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+pkgver=0.8.3
+pkgrel=1
+pkgdesc=HTTP client mock for Python
+arch=('any')
+url=http://github.com/gabrielfalcao/httpretty;
+license=('MIT')
+makedepends=('python-urllib3' 'python2-urllib3')
+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=('50b02560a49fe928c90c53a49791f621')
+
+prepare() {
+  cp -r httpretty-$pkgver{,-py2}
+
+  # Fix the encoding issue
+  sed -i 78s/f)).read()/f), encoding='utf8').read()/ 
httpretty-$pkgver/setup.py
+}
+
+check() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd httpretty-$pkgver
+  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-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+



[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

2014-06-18 Thread Felix Yan
Date: Thursday, June 19, 2014 @ 06:46:57
  Author: fyan
Revision: 113342

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
(from rev 113341, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

--+
 PKGBUILD |  100 +++--
 1 file changed, 51 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2014-06-19 04:45:27 UTC (rev 113341)
+++ PKGBUILD2014-06-19 04:46:57 UTC (rev 113342)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
-
-pkgbase=python-httpretty
-pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.0
-pkgrel=1
-pkgdesc=HTTP client mock for Python
-arch=('any')
-url=http://github.com/gabrielfalcao/httpretty;
-license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3')
-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')
-
-prepare() {
-  cp -r httpretty-$pkgver{,-py2}
-}
-
-check() {
-  cd httpretty-$pkgver
-  # Disabled due to hanging
-  #nosetests3 -s tests
-
-  cd ../httpretty-$pkgver-py2
-  nosetests2 -s tests || :  # Failing some tests
-}
-
-package_python-httpretty() {
-  depends=('python')
-  optdepends=('python-urllib3: for recording actual requests')
-
-  cd httpretty-$pkgver
-  python3 setup.py install --root=${pkgdir} --optimize=1
-  install -Dm644 COPYING $pkgdir/usr/share/licenses/python-httpretty/COPYING
-}
-
-package_python2-httpretty() {
-  depends=('python2')
-  optdepends=('python2-urllib3: for recording actual requests')
-
-  cd httpretty-$pkgver-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 113341, 
python-httpretty/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2014-06-19 04:46:57 UTC (rev 113342)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-httpretty
+pkgname=(python-httpretty python2-httpretty)
+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' '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=('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() {
+  cd httpretty-$pkgver
+  # Disabled due to hanging
+  #nosetests3 -s tests
+
+  cd ../httpretty-$pkgver-py2
+  nosetests2 -s tests || warning Tests failed
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3' 'python-requests')
+
+  cd httpretty-$pkgver
+  python3 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python-httpretty/COPYING
+}
+
+package_python2-httpretty() {
+  depends=('python2-urllib3' 'python2-requests')
+
+  cd httpretty-$pkgver-py2
+  python2 setup.py install --root=${pkgdir} --optimize=1
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/python2-httpretty/COPYING
+}
+