[arch-commits] Commit in python-httpretty/repos (2 files)

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

archrelease: copy trunk to community-testing-any

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

--+
 PKGBUILD |   26 ++
 1 file changed, 26 insertions(+)

Copied: python-httpretty/repos/community-testing-any/PKGBUILD (from rev 624673, 
python-httpretty/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2020-05-04 05:08:16 UTC (rev 624674)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-httpretty
+pkgver=1.0.0
+pkgrel=1
+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-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')
+
+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 (2 files)

2019-10-26 Thread Felix Yan via arch-commits
Date: Saturday, October 26, 2019 @ 20:23:02
  Author: felixonmars
Revision: 520492

archrelease: copy trunk to community-staging-any

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

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

Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev 520489, 
python-httpretty/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-10-26 20:23:02 UTC (rev 520492)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.9.6
+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=('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 (2 files)

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

archrelease: copy trunk to community-staging-any

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

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

Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev 358217, 
python-httpretty/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-07-12 20:59:41 UTC (rev 358218)
@@ -0,0 +1,46 @@
+# $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"
+}


[arch-commits] Commit in python-httpretty/repos (2 files)

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

archrelease: copy trunk to community-testing-any

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

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

Copied: python-httpretty/repos/community-testing-any/PKGBUILD (from rev 340941, 
python-httpretty/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-06-06 08:00:54 UTC (rev 340942)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.9.4
+_commit=2a9e08d96feff10d5d68557f0579b9c6b8d9ebf2
+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=('1c0b517388cc2a0e69c00a2ddc63d19164089caf5dca9525134387c8040911f4a2460b22370601ef9a79ca4f87bf5c3a7a0a6f5991fb58c9558292d9f84a464e')
+
+prepare() {
+  mv HTTPretty-{$_commit,$pkgver}
+  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 (2 files)

2016-12-26 Thread Bartłomiej Piotrowski
Date: Monday, December 26, 2016 @ 10:21:04
  Author: bpiotrowski
Revision: 202710

archrelease: copy trunk to community-staging-any

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

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

Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev 202709, 
python-httpretty/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2016-12-26 10:21:04 UTC (rev 202710)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgbase=python-httpretty
+pkgname=("python-httpretty" "python2-httpretty")
+pkgver=0.8.14
+pkgrel=2
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="http://github.com/gabrielfalcao/httpretty";
+license=('MIT')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 
'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-coverage' 
'python2-coverage' 'python-mock' 'python2-mock'
+  'python-sure' 'python2-sure' 'python-tornado' 'python2-tornado' 
'python-requests' 'python2-requests'
+  'python-httplib2' 'python2-httplib2')
+source=("git+https://github.com/gabrielfalcao/HTTPretty.git#tag=$pkgver";)
+md5sums=('SKIP')
+
+prepare() {
+  cp -a HTTPretty{,-py2}
+}
+
+check() {
+  cd HTTPretty
+  nosetests3 -s tests || warning "Tests failed"
+
+  cd ../HTTPretty-py2
+  nosetests2 -s tests
+}
+
+package_python-httpretty() {
+  depends=('python-urllib3')
+
+  cd HTTPretty
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
+}
+
+package_python2-httpretty() {
+  depends=('python2-urllib3')
+
+  cd HTTPretty-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/python2-httpretty/COPYING"
+}


[arch-commits] Commit in python-httpretty/repos (2 files)

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

archrelease: copy trunk to community-staging-any

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

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

Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev 141143, 
python-httpretty/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2015-09-20 03:18:22 UTC (rev 141144)
@@ -0,0 +1,50 @@
+# $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"
+}
+