[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2020-11-26 Thread Felix Yan via arch-commits
Date: Thursday, November 26, 2020 @ 17:43:28
  Author: felixonmars
Revision: 763692

upgpkg: python-httpretty 1.0.3-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-26 17:38:37 UTC (rev 763691)
+++ PKGBUILD2020-11-26 17:43:28 UTC (rev 763692)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-httpretty
-pkgver=1.0.2
-pkgrel=3
+pkgver=1.0.3
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;
@@ -12,7 +12,7 @@
 checkdepends=('python-nose' 'python-coverage' 'python-eventlet' 
'python-freezegun' 'python-httplib2'
   'python-redis' 'python-rednose' 'python-requests' 'python-sure' 
'python-tornado')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
-sha512sums=('f9f7001e9d65e0f0613e5e59c61f8330e445887b9552afbcfe8f5367a536dbabefb8a080330e06552313c3758becb39cf59d1ef7e835a3198adc9dfeff0074bd')
+sha512sums=('2bec402b83fae9d00ec21d36e72b42b5e8c41c5377fe16b5bd77b1aa94e1096529e7c6b6ca2ce71fe80b66a60c3689c017fea1ebf031e7b9be512a833fbaca90')
 
 check() {
   cd HTTPretty-$pkgver


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2020-11-12 Thread Felix Yan via arch-commits
Date: Thursday, November 12, 2020 @ 18:55:20
  Author: felixonmars
Revision: 753256

upgpkg: python-httpretty 1.0.2-3: Python 3.9 rebuild

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-12 18:55:12 UTC (rev 753255)
+++ PKGBUILD2020-11-12 18:55:20 UTC (rev 753256)
@@ -2,7 +2,7 @@
 
 pkgname=python-httpretty
 pkgver=1.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2020-05-07 Thread Felix Yan via arch-commits
Date: Thursday, May 7, 2020 @ 13:33:10
  Author: felixonmars
Revision: 625350

upgpkg: python-httpretty 1.0.2-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-07 13:26:56 UTC (rev 625349)
+++ PKGBUILD2020-05-07 13:33:10 UTC (rev 625350)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-httpretty
-pkgver=1.0.1
+pkgver=1.0.2
 pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
@@ -12,7 +12,7 @@
 checkdepends=('python-nose' 'python-coverage' 'python-eventlet' 
'python-freezegun' 'python-httplib2'
   'python-redis' 'python-rednose' 'python-requests' 'python-sure' 
'python-tornado')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
-sha512sums=('c66cbfdd6a80a9fed9cd39b92ce3cc51b671b413035c947aecf28be701541b4159f303d268d338c055e1b55904b381be7388ba804a8b76aa93e6381710aaeffe')
+sha512sums=('f9f7001e9d65e0f0613e5e59c61f8330e445887b9552afbcfe8f5367a536dbabefb8a080330e06552313c3758becb39cf59d1ef7e835a3198adc9dfeff0074bd')
 
 check() {
   cd HTTPretty-$pkgver


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2020-05-06 Thread Felix Yan via arch-commits
Date: Thursday, May 7, 2020 @ 05:57:47
  Author: felixonmars
Revision: 625253

upgpkg: python-httpretty 1.0.1-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-07 05:57:18 UTC (rev 625252)
+++ PKGBUILD2020-05-07 05:57:47 UTC (rev 625253)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-httpretty
-pkgver=1.0.0
+pkgver=1.0.1
 pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
@@ -12,7 +12,7 @@
 checkdepends=('python-nose' 'python-coverage' 'python-eventlet' 
'python-freezegun' 'python-httplib2'
   'python-redis' 'python-rednose' 'python-requests' 'python-sure' 
'python-tornado')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
-sha512sums=('3f34af2c67d4b30e7f4a241f6f47416350313787f571ec4f5603a99be4a2fbbd3c977767422f4460da4009e6b9fa8dac8f408b02917525a5628dd63b1e29058b')
+sha512sums=('c66cbfdd6a80a9fed9cd39b92ce3cc51b671b413035c947aecf28be701541b4159f303d268d338c055e1b55904b381be7388ba804a8b76aa93e6381710aaeffe')
 
 check() {
   cd HTTPretty-$pkgver


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2020-05-03 Thread Felix Yan via arch-commits
Date: Monday, May 4, 2020 @ 05:08:08
  Author: felixonmars
Revision: 624673

upgpkg: python-httpretty 1.0.0-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |   17 ++---
 1 file changed, 6 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-04 05:00:31 UTC (rev 624672)
+++ PKGBUILD2020-05-04 05:08:08 UTC (rev 624673)
@@ -1,9 +1,8 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-httpretty
-pkgver=0.9.7
-_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
-pkgrel=2
+pkgver=1.0.0
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;
@@ -10,15 +9,11 @@
 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')
+checkdepends=('python-nose' 'python-coverage' 'python-eventlet' 
'python-freezegun' 'python-httplib2'
+  'python-redis' 'python-rednose' 'python-requests' 'python-sure' 
'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
+sha512sums=('3f34af2c67d4b30e7f4a241f6f47416350313787f571ec4f5603a99be4a2fbbd3c977767422f4460da4009e6b9fa8dac8f408b02917525a5628dd63b1e29058b')
 
-prepare() {
-  mv HTTPretty-{$_commit,$pkgver}
-}
-
 check() {
   cd HTTPretty-$pkgver
   nosetests3 -s tests


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.9.7-2: Remove python2 support

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |   30 +++---
 1 file changed, 7 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-03-16 21:32:32 UTC (rev 599875)
+++ PKGBUILD2020-03-16 22:00:04 UTC (rev 599876)
@@ -1,47 +1,31 @@
 # Maintainer: Felix Yan 
 
-pkgbase=python-httpretty
-pkgname=("python-httpretty" "python2-httpretty")
+pkgname=python-httpretty
 pkgver=0.9.7
 _commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
-pkgrel=1
+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-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz;)
+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}
-  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/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.9.7-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |   20 +++-
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-13 18:04:51 UTC (rev 570752)
+++ PKGBUILD2020-02-13 18:05:39 UTC (rev 570753)
@@ -2,8 +2,9 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.6
-pkgrel=3
+pkgver=0.9.7
+_commit=c9d0ab7ddeb8f15769e358d4549e4f8c9053fb56
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;
@@ -13,16 +14,17 @@
   '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')
+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 || warning "Tests failed"
+  nosetests3 -s tests
 
   cd ../HTTPretty-$pkgver-py2
   nosetests2 -s tests
@@ -32,8 +34,8 @@
   depends=('python-urllib3')
 
   cd HTTPretty-$pkgver
-  python3 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 }
 
 package_python2-httpretty() {
@@ -40,6 +42,6 @@
   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"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
 }


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2019-11-04 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 09:50:30
  Author: felixonmars
Revision: 523962

Python 3.8 rebuild

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-04 09:49:52 UTC (rev 523961)
+++ PKGBUILD2019-11-04 09:50:30 UTC (rev 523962)
@@ -3,7 +3,7 @@
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
 pkgver=0.9.6
-pkgrel=2
+pkgrel=3
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2019-10-26 Thread Felix Yan via arch-commits
Date: Saturday, October 26, 2019 @ 20:22:47
  Author: felixonmars
Revision: 520487

Python 3.8 rebuild

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-26 20:22:47 UTC (rev 520486)
+++ PKGBUILD2019-10-26 20:22:47 UTC (rev 520487)
@@ -3,7 +3,7 @@
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
 pkgver=0.9.6
-pkgrel=1
+pkgrel=2
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.9.6-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-26 19:07:00 UTC (rev 409804)
+++ PKGBUILD2018-11-26 19:07:39 UTC (rev 409805)
@@ -2,8 +2,8 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.5
-pkgrel=2
+pkgver=0.9.6
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;
@@ -14,7 +14,7 @@
   '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')
+sha512sums=('6d4274961d4ff2475c4035e0174694a851640dcd383727de5508f342827f77143b09a7a2c644978d1ca5932945fec75a85187ca6979dbfd2e109e3540467abf0')
 
 prepare() {
   cp -a HTTPretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2018-07-12 Thread Felix Yan via arch-commits
Date: Thursday, July 12, 2018 @ 20:59:18
  Author: felixonmars
Revision: 358216

upgpkg: python-httpretty 0.9.5-2

Python 3.7 rebuild

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-07-12 20:59:02 UTC (rev 358215)
+++ PKGBUILD2018-07-12 20:59:18 UTC (rev 358216)
@@ -4,7 +4,7 @@
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
 pkgver=0.9.5
-pkgrel=1
+pkgrel=2
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="https://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2018-06-06 Thread Felix Yan via arch-commits
Date: Wednesday, June 6, 2018 @ 17:31:15
  Author: felixonmars
Revision: 341509

upgpkg: python-httpretty 0.9.5-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-06 17:30:43 UTC (rev 341508)
+++ PKGBUILD2018-06-06 17:31:15 UTC (rev 341509)
@@ -3,8 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.9.4
-_commit=2a9e08d96feff10d5d68557f0579b9c6b8d9ebf2
+pkgver=0.9.5
 pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
@@ -15,11 +14,10 @@
   '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=('1c0b517388cc2a0e69c00a2ddc63d19164089caf5dca9525134387c8040911f4a2460b22370601ef9a79ca4f87bf5c3a7a0a6f5991fb58c9558292d9f84a464e')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz;)
+sha512sums=('6e830875cf51f4e9b2e248aa3395caf3950a05ce1df493d9e8b9f5cc9a2d1d1140e69d6e28f6c23acb388c91ef17d737d036736797e33186d20a25d21434184e')
 
 prepare() {
-  mv HTTPretty-{$_commit,$pkgver}
   cp -a HTTPretty-$pkgver{,-py2}
 }
 


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2018-06-06 Thread Felix Yan via arch-commits
Date: Wednesday, June 6, 2018 @ 08:00:29
  Author: felixonmars
Revision: 340941

upgpkg: python-httpretty 0.9.4-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |   31 +--
 1 file changed, 17 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-06 07:59:23 UTC (rev 340940)
+++ PKGBUILD2018-06-06 08:00:29 UTC (rev 340941)
@@ -3,28 +3,31 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.14
-pkgrel=2
+pkgver=0.9.4
+_commit=2a9e08d96feff10d5d68557f0579b9c6b8d9ebf2
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
-url="http://github.com/gabrielfalcao/httpretty;
+url="https://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')
+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=('1c0b517388cc2a0e69c00a2ddc63d19164089caf5dca9525134387c8040911f4a2460b22370601ef9a79ca4f87bf5c3a7a0a6f5991fb58c9558292d9f84a464e')
 
 prepare() {
-  cp -a HTTPretty{,-py2}
+  mv HTTPretty-{$_commit,$pkgver}
+  cp -a HTTPretty-$pkgver{,-py2}
 }
 
 check() {
-  cd HTTPretty
+  cd HTTPretty-$pkgver
   nosetests3 -s tests || warning "Tests failed"
 
-  cd ../HTTPretty-py2
+  cd ../HTTPretty-$pkgver-py2
   nosetests2 -s tests
 }
 
@@ -31,7 +34,7 @@
 package_python-httpretty() {
   depends=('python-urllib3')
 
-  cd HTTPretty
+  cd HTTPretty-$pkgver
   python3 setup.py install --root="${pkgdir}" --optimize=1
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
 }
@@ -39,7 +42,7 @@
 package_python2-httpretty() {
   depends=('python2-urllib3')
 
-  cd HTTPretty-py2
+  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/trunk (PKGBUILD)

2016-12-26 Thread Bartłomiej Piotrowski
Date: Monday, December 26, 2016 @ 10:20:57
  Author: bpiotrowski
Revision: 202709

Python 3.6 rebuild

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-26 10:20:48 UTC (rev 202708)
+++ PKGBUILD2016-12-26 10:20:57 UTC (rev 202709)
@@ -4,7 +4,7 @@
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
 pkgver=0.8.14
-pkgrel=1
+pkgrel=2
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="http://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.14-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-01-19 00:17:44 UTC (rev 157548)
+++ PKGBUILD2016-01-19 01:56:02 UTC (rev 157549)
@@ -3,8 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.12
-_commit=f8e89e8ac5d7cd187b4ae65776c5069aafe35933
+pkgver=0.8.14
 pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
@@ -14,7 +13,7 @@
 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;)
+source=("git+https://github.com/gabrielfalcao/HTTPretty.git#tag=$pkgver;)
 md5sums=('SKIP')
 
 prepare() {


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-12-14 Thread Felix Yan
Date: Monday, December 14, 2015 @ 14:47:00
  Author: fyan
Revision: 153250

upgpkg: python-httpretty 0.8.12-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-14 13:43:07 UTC (rev 153249)
+++ PKGBUILD2015-12-14 13:47:00 UTC (rev 153250)
@@ -3,7 +3,8 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.11
+pkgver=0.8.12
+_commit=f8e89e8ac5d7cd187b4ae65776c5069aafe35933
 pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
@@ -13,14 +14,11 @@
 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;)
+source=("git+https://github.com/gabrielfalcao/HTTPretty.git#commit=$_commit;)
 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() {


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-12-13 Thread Felix Yan
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
===
--- PKGBUILD2015-12-13 22:16:33 UTC (rev 153208)
+++ PKGBUILD2015-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"
 }
-


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-09-19 Thread Felix Yan
Date: Sunday, September 20, 2015 @ 05:18:10
  Author: fyan
Revision: 141143

upgpkg: python-httpretty 0.8.10-2

rebuild for python 3.5

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-20 03:16:26 UTC (rev 141142)
+++ PKGBUILD2015-09-20 03:18:10 UTC (rev 141143)
@@ -4,7 +4,7 @@
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
 pkgver=0.8.10
-pkgrel=1
+pkgrel=2
 pkgdesc="HTTP client mock for Python"
 arch=('any')
 url="http://github.com/gabrielfalcao/httpretty;


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-08-07 Thread Felix Yan
Date: Friday, August 7, 2015 @ 09:32:49
  Author: fyan
Revision: 138050

upgpkg: python-httpretty 0.8.10-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-08-07 07:13:31 UTC (rev 138049)
+++ PKGBUILD2015-08-07 07:32:49 UTC (rev 138050)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.9
+pkgver=0.8.10
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('9c130b16726cbf85159574ae5761bce7')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.9-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-08-03 03:53:45 UTC (rev 137760)
+++ PKGBUILD2015-08-03 03:58:04 UTC (rev 137761)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.8
+pkgver=0.8.9
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('9c182d372a6be0e338aef2133791d377')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-03-11 Thread Felix Yan
Date: Thursday, March 12, 2015 @ 04:59:44
  Author: fyan
Revision: 129089

upgpkg: python-httpretty 0.8.8-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-03-12 03:25:07 UTC (rev 129088)
+++ PKGBUILD2015-03-12 03:59:44 UTC (rev 129089)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.7
+pkgver=0.8.8
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('0b95e48c8466ed9dc157070229651a6b')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2015-02-21 Thread Felix Yan
Date: Sunday, February 22, 2015 @ 05:58:40
  Author: fyan
Revision: 128094

upgpkg: python-httpretty 0.8.7-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-22 04:54:39 UTC (rev 128093)
+++ PKGBUILD2015-02-22 04:58:40 UTC (rev 128094)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.6
+pkgver=0.8.7
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('753b82f3bf632fbfc595816a0f6691f0')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.6-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-21 10:32:03 UTC (rev 128067)
+++ PKGBUILD2015-02-21 14:29:07 UTC (rev 128068)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.5
+pkgver=0.8.6
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('d45e7e831b6e66974ba231453a715f39')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.5-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-20 05:04:25 UTC (rev 128007)
+++ PKGBUILD2015-02-20 05:12:15 UTC (rev 128008)
@@ -3,7 +3,7 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.4
+pkgver=0.8.5
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('561e870731c387c2856195bf844eafb2')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.4-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-04 03:41:37 UTC (rev 127066)
+++ PKGBUILD2015-02-04 03:45:18 UTC (rev 127067)
@@ -1,9 +1,9 @@
 # $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
+# Maintainer: Felix Yan felixonm...@archlinux.org
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.3
+pkgver=0.8.4
 pkgrel=1
 pkgdesc=HTTP client mock for Python
 arch=('any')
@@ -14,7 +14,7 @@
   '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')
+md5sums=('8bd2bfce2ff4c464ef25951e1b500469')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}


[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2014-06-22 Thread Felix Yan
Date: Sunday, June 22, 2014 @ 17:42:21
  Author: fyan
Revision: 113427

FS#40907 fix makedepends

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-06-22 15:29:21 UTC (rev 113426)
+++ PKGBUILD2014-06-22 15:42:21 UTC (rev 113427)
@@ -9,7 +9,7 @@
 arch=('any')
 url=http://github.com/gabrielfalcao/httpretty;
 license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3')
+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')



[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

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

upgpkg: python-httpretty 0.8.3-1

Modified:
  python-httpretty/trunk/PKGBUILD

--+
 PKGBUILD |   11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-06-19 22:16:51 UTC (rev 113370)
+++ PKGBUILD2014-06-20 01:20:07 UTC (rev 113371)
@@ -3,18 +3,18 @@
 
 pkgbase=python-httpretty
 pkgname=(python-httpretty python2-httpretty)
-pkgver=0.8.1
+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' 'python-requests' 
'python2-requests')
+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=('8f4d4339711551ff8b3d94bf4389754c')
+md5sums=('50b02560a49fe928c90c53a49791f621')
 
 prepare() {
   cp -r httpretty-$pkgver{,-py2}
@@ -21,7 +21,6 @@
 
   # 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() {
@@ -34,7 +33,7 @@
 }
 
 package_python-httpretty() {
-  depends=('python-urllib3' 'python-requests')
+  depends=('python-urllib3')
 
   cd httpretty-$pkgver
   python3 setup.py install --root=${pkgdir} --optimize=1
@@ -42,7 +41,7 @@
 }
 
 package_python2-httpretty() {
-  depends=('python2-urllib3' 'python2-requests')
+  depends=('python2-urllib3')
 
   cd httpretty-$pkgver-py2
   python2 setup.py install --root=${pkgdir} --optimize=1



[arch-commits] Commit in python-httpretty/trunk (PKGBUILD)

2014-06-18 Thread Felix Yan
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
===
--- PKGBUILD2014-06-19 04:22:31 UTC (rev 113340)
+++ PKGBUILD2014-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