[arch-commits] Commit in python-restkit/repos/community-any (3 files)

Antonio Rojas arojas at archlinux.org
Sat Dec 1 23:00:44 UTC 2018


    Date: Saturday, December 1, 2018 @ 23:00:44
  Author: arojas
Revision: 410740

archrelease: copy trunk to community-any

Added:
  python-restkit/repos/community-any/PKGBUILD
    (from rev 410739, python-restkit/trunk/PKGBUILD)
  python-restkit/repos/community-any/restkit-disable-tests-needing-internet-connection.patch
    (from rev 410739, python-restkit/trunk/restkit-disable-tests-needing-internet-connection.patch)
Deleted:
  python-restkit/repos/community-any/PKGBUILD

---------------------------------------------------------+
 PKGBUILD                                                |  108 +++++++-------
 restkit-disable-tests-needing-internet-connection.patch |   53 ++++++
 2 files changed, 108 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-01 23:00:18 UTC (rev 410739)
+++ PKGBUILD	2018-12-01 23:00:44 UTC (rev 410740)
@@ -1,53 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-restkit
-pkgname=('python2-restkit')
-pkgver=4.2.2
-pkgrel=1
-pkgdesc="An HTTP resource kit for Python"
-arch=('any')
-license=('MIT')
-url="http://benoitc.github.com/restkit"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-http-parser' 'python2-http-parser'
-             'python-socketpool' 'python2-socketpool' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-webob' 'python2-webob')
-source=("git+https://github.com/benoitc/restkit.git#tag=$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
-  sed -i '/data_files/d' restkit/setup.py
-  cp -a restkit{,-py2}
-}
-
-build() {
-  cd "$srcdir/restkit"
-  # python setup.py build
-
-  cd "$srcdir/restkit-py2"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/restkit"
-  # python setup.py test
-
-  cd "$srcdir/restkit-py2"
-  python2 setup.py test
-}
-
-package_python-restkit() {
-  depends=('python-socketpool' 'python-http-parser')
-
-  cd restkit
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-restkit() {
-  depends=('python2-socketpool' 'python2-http-parser')
-
-  cd restkit-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-restkit/repos/community-any/PKGBUILD (from rev 410739, python-restkit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-01 23:00:44 UTC (rev 410740)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-restkit
+pkgname=('python2-restkit')
+pkgver=4.2.2
+pkgrel=2
+pkgdesc="An HTTP resource kit for Python"
+arch=('any')
+license=('MIT')
+url="http://benoitc.github.com/restkit"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-http-parser' 'python2-http-parser'
+             'python-socketpool' 'python2-socketpool' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-webob' 'python2-webob')
+source=("git+https://github.com/benoitc/restkit.git#tag=$pkgver"
+        restkit-disable-tests-needing-internet-connection.patch)
+sha512sums=('SKIP'
+            '56c597996d3f1bf3e5ddf1b09a0663e531cef290639eba4357dc2873a03fd7f19e5432bd085fcd9e9b97c1443f283eff54628c99f6f4494d4e905d366bc021fd')
+
+prepare() {
+  sed -i '/data_files/d' restkit/setup.py
+  (cd restkit && patch -p0 -i ../restkit-disable-tests-needing-internet-connection.patch) # Disable tests that rely on broken website (Fedora)
+  cp -a restkit{,-py2}
+}
+
+build() {
+  cd "$srcdir/restkit"
+  # python setup.py build
+
+  cd "$srcdir/restkit-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/restkit"
+  # python setup.py test
+
+  cd "$srcdir/restkit-py2"
+  python2 setup.py test
+}
+
+package_python-restkit() {
+  depends=('python-socketpool' 'python-http-parser')
+
+  cd restkit
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-restkit() {
+  depends=('python2-socketpool' 'python2-http-parser')
+
+  cd restkit-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-restkit/repos/community-any/restkit-disable-tests-needing-internet-connection.patch (from rev 410739, python-restkit/trunk/restkit-disable-tests-needing-internet-connection.patch)
===================================================================
--- restkit-disable-tests-needing-internet-connection.patch	                        (rev 0)
+++ restkit-disable-tests-needing-internet-connection.patch	2018-12-01 23:00:44 UTC (rev 410740)
@@ -0,0 +1,53 @@
+--- tests/004-test-client.py.orig	2012-01-20 17:39:18.000000000 +0100
++++ tests/004-test-client.py	2012-03-23 11:51:14.079946644 +0100
+@@ -112,29 +112,29 @@
+     t.eq(r.body_string(), "ok")
+     
+ 
+- at t.client_request('http://e-engura.com/images/logo.gif')
+-def test_007(u, c):
+-    r = c.request(u)
+-    print r.status
+-    t.eq(r.status_int, 200)
+-    fd, fname = tempfile.mkstemp(suffix='.gif')
+-    f = os.fdopen(fd, "wb")
+-    f.write(r.body_string())
+-    f.close()
+-    t.eq(imghdr.what(fname), 'gif')
++#@t.client_request('http://e-engura.com/images/logo.gif')
++#def test_007(u, c):
++#    r = c.request(u)
++#    print r.status
++#    t.eq(r.status_int, 200)
++#    fd, fname = tempfile.mkstemp(suffix='.gif')
++#    f = os.fdopen(fd, "wb")
++#    f.write(r.body_string())
++#    f.close()
++#    t.eq(imghdr.what(fname), 'gif')
+     
+ 
+- at t.client_request('http://e-engura.com/images/logo.gif')
+-def test_008(u, c):
+-    r = c.request(u)
+-    t.eq(r.status_int, 200)
+-    fd, fname = tempfile.mkstemp(suffix='.gif')
+-    f = os.fdopen(fd, "wb")
+-    with r.body_stream() as body:
+-        for block in body:
+-            f.write(block)
+-    f.close()
+-    t.eq(imghdr.what(fname), 'gif')
++#@t.client_request('http://e-engura.com/images/logo.gif')
++#def test_008(u, c):
++#    r = c.request(u)
++#    t.eq(r.status_int, 200)
++#    fd, fname = tempfile.mkstemp(suffix='.gif')
++#    f = os.fdopen(fd, "wb")
++#    with r.body_stream() as body:
++#        for block in body:
++#            f.write(block)
++#    f.close()
++#    t.eq(imghdr.what(fname), 'gif')
+     
+ 
+ @t.client_request('/redirect')



More information about the arch-commits mailing list