[arch-commits] Commit in python-requests/repos/extra-any (4 files)

Felix Yan fyan at archlinux.org
Tue Dec 22 01:53:02 UTC 2015


    Date: Tuesday, December 22, 2015 @ 02:53:02
  Author: fyan
Revision: 257100

archrelease: copy trunk to extra-any

Added:
  python-requests/repos/extra-any/PKGBUILD
    (from rev 257099, python-requests/trunk/PKGBUILD)
  python-requests/repos/extra-any/certs.patch
    (from rev 257099, python-requests/trunk/certs.patch)
Deleted:
  python-requests/repos/extra-any/PKGBUILD
  python-requests/repos/extra-any/certs.patch

-------------+
 PKGBUILD    |  142 +++++++++++++++++++++++++++++-----------------------------
 certs.patch |   26 +++++-----
 2 files changed, 84 insertions(+), 84 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-22 01:52:37 UTC (rev 257099)
+++ PKGBUILD	2015-12-22 01:53:02 UTC (rev 257100)
@@ -1,71 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-requests
-pkgname=('python-requests' 'python2-requests')
-pkgver=2.9.0
-pkgrel=1
-pkgdesc="Python HTTP for Humans"
-arch=('any')
-url="http://python-requests.org"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet'
-             'python-urllib3' 'python2-urllib3')
-checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
-source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
-        certs.patch)
-sha256sums=('4881966532b5a36c552244fd909de66d1b8c4a26086f56fd5837cfcde63f8eb8'
-            'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
-
-prepare() {
-    cd "$srcdir"/requests-$pkgver
-
-    patch -p1 -i "$srcdir"/certs.patch
-    sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
-    rm -f requests/cacert.pem
-
-    rm -r requests/packages/{urllib3,chardet}
-    sed -e '/packages.chardet/d' \
-        -e '/packages.urllib3/d' \
-        -i setup.py
-
-    cd "$srcdir"
-    cp -a requests-$pkgver{,-py2}
-    find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
-}
-
-build() {
-    cd "$srcdir"/requests-$pkgver
-    python setup.py build
-
-    cd "$srcdir"/requests-$pkgver-py2
-    python2 setup.py build
-}
-
-check() {
-    cd "$srcdir"/requests-$pkgver
-    test -f "$(python -m requests.certs)"
-    py.test
-
-    cd "$srcdir"/requests-$pkgver-py2
-    test -f "$(python2 -m requests.certs)"
-    py.test2
-}
-
-package_python-requests() {
-    depends=('python-urllib3' 'python-chardet')
-
-    cd "$srcdir"/requests-$pkgver
-    python setup.py install --skip-build -O1 --root="$pkgdir"
-    install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-requests() {
-    depends=('python2-urllib3' 'python2-chardet')
-    optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
-                'python2-grequests: asynchronous requests with gevent')
-
-    cd "$srcdir"/requests-$pkgver-py2
-    python2 setup.py install --skip-build -O1 --root="$pkgdir"
-}

Copied: python-requests/repos/extra-any/PKGBUILD (from rev 257099, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-12-22 01:53:02 UTC (rev 257100)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.9.1
+pkgrel=1
+pkgdesc="Python HTTP for Humans"
+arch=('any')
+url="http://python-requests.org"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet'
+             'python-urllib3' 'python2-urllib3')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
+source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
+        certs.patch)
+sha256sums=('c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f'
+            'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+    cd "$srcdir"/requests-$pkgver
+
+    patch -p1 -i "$srcdir"/certs.patch
+    sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+    rm -f requests/cacert.pem
+
+    rm -r requests/packages/{urllib3,chardet}
+    sed -e '/packages.chardet/d' \
+        -e '/packages.urllib3/d' \
+        -i setup.py
+
+    cd "$srcdir"
+    cp -a requests-$pkgver{,-py2}
+    find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+}
+
+build() {
+    cd "$srcdir"/requests-$pkgver
+    python setup.py build
+
+    cd "$srcdir"/requests-$pkgver-py2
+    python2 setup.py build
+}
+
+check() {
+    cd "$srcdir"/requests-$pkgver
+    test -f "$(python -m requests.certs)"
+    py.test
+
+    cd "$srcdir"/requests-$pkgver-py2
+    test -f "$(python2 -m requests.certs)"
+    py.test2
+}
+
+package_python-requests() {
+    depends=('python-urllib3' 'python-chardet')
+
+    cd "$srcdir"/requests-$pkgver
+    python setup.py install --skip-build -O1 --root="$pkgdir"
+    install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-requests() {
+    depends=('python2-urllib3' 'python2-chardet')
+    optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+                'python2-grequests: asynchronous requests with gevent')
+
+    cd "$srcdir"/requests-$pkgver-py2
+    python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Deleted: certs.patch
===================================================================
--- certs.patch	2015-12-22 01:52:37 UTC (rev 257099)
+++ certs.patch	2015-12-22 01:53:02 UTC (rev 257100)
@@ -1,13 +0,0 @@
-diff --git a/requests/certs.py b/requests/certs.py
-index 07e6475..33db011 100644
---- a/requests/certs.py
-+++ b/requests/certs.py
-@@ -19,7 +19,7 @@ except ImportError:
-     def where():
-         """Return the preferred certificate bundle."""
-         # vendored bundle inside Requests
--        return os.path.join(os.path.dirname(__file__), 'cacert.pem')
-+        return "/etc/ssl/certs/ca-certificates.crt"
- 
- if __name__ == '__main__':
-     print(where())

Copied: python-requests/repos/extra-any/certs.patch (from rev 257099, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2015-12-22 01:53:02 UTC (rev 257100)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 100644
+--- a/requests/certs.py
++++ b/requests/certs.py
+@@ -19,7 +19,7 @@ except ImportError:
+     def where():
+         """Return the preferred certificate bundle."""
+         # vendored bundle inside Requests
+-        return os.path.join(os.path.dirname(__file__), 'cacert.pem')
++        return "/etc/ssl/certs/ca-certificates.crt"
+ 
+ if __name__ == '__main__':
+     print(where())



More information about the arch-commits mailing list