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

Eric Bélanger eric at archlinux.org
Fri Mar 20 18:04:01 UTC 2015


    Date: Friday, March 20, 2015 @ 19:04:01
  Author: eric
Revision: 234250

archrelease: copy trunk to extra-any

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

-------------+
 PKGBUILD    |  117 ++++++++++++++++++++++++++++------------------------------
 certs.patch |   26 ++++++------
 2 files changed, 71 insertions(+), 72 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-03-20 18:02:41 UTC (rev 234249)
+++ PKGBUILD	2015-03-20 18:04:01 UTC (rev 234250)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-requests
-pkgname=(python-requests python2-requests)
-pkgver=2.5.3
-pkgrel=1
-_libname=requests
-pkgdesc="Python HTTP for Humans."
-url="http://python-requests.org"
-makedepends=('python-setuptools' 'python2-setuptools')
-license=('Apache')
-arch=('any')
-source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
-        certs.patch)
-sha256sums=('55d7f5619daae94ec49ee81ed8c865e5a2a47f0bbf8e06cf94636bee103eaf65'
-            'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
-
-prepare() {
-    cd "$srcdir"/$_libname-$pkgver
-    patch -p1 -i "$srcdir"/certs.patch
-    sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
-    rm -f requests/cacert.pem
-}
-
-build() {
-    cd "$srcdir"/$_libname-$pkgver
-
-    rm -rf ../buildpy3; mkdir ../buildpy3
-    python setup.py build -b ../buildpy3
-
-    rm -rf ../buildpy2; mkdir ../buildpy2
-    python2 setup.py build -b ../buildpy2
-    find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
-}
-
-check() {
-    cd "$srcdir"/$_libname-$pkgver
-    test -f "$(python -m requests.certs)"
-}
-
-package_python-requests() {
-    depends=(python)
-
-    cd "$srcdir"/$_libname-$pkgver
-    rm -rf build; ln -s ../buildpy3 build
-    python setup.py install --skip-build -O1 --root="$pkgdir"
-    install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-requests() {
-    depends=(python2)
-    optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
-                'python2-grequests: asynchronous requests with gevent')
-
-    cd "$srcdir"/$_libname-$pkgver
-    rm -rf build; ln -s ../buildpy2 build
-    python2 setup.py install --skip-build -O1 --root="$pkgdir"
-}

Copied: python-requests/repos/extra-any/PKGBUILD (from rev 234249, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-03-20 18:04:01 UTC (rev 234250)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.6.0
+pkgrel=1
+pkgdesc="Python HTTP for Humans"
+arch=('any')
+url="http://python-requests.org"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
+        certs.patch)
+sha256sums=('1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75'
+            '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
+}
+
+build() {
+    cd "$srcdir"/requests-$pkgver
+
+    rm -rf ../buildpy3; mkdir ../buildpy3
+    python setup.py build -b ../buildpy3
+
+    rm -rf ../buildpy2; mkdir ../buildpy2
+    python2 setup.py build -b ../buildpy2
+    find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
+}
+
+check() {
+    cd "$srcdir"/requests-$pkgver
+    test -f "$(python -m requests.certs)"
+}
+
+package_python-requests() {
+    depends=('python')
+
+    cd "$srcdir"/requests-$pkgver
+    rm -rf build; ln -s ../buildpy3 build
+    python setup.py install --skip-build -O1 --root="$pkgdir"
+    install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-requests() {
+    depends=('python2')
+    optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+                'python2-grequests: asynchronous requests with gevent')
+
+    cd "$srcdir"/requests-$pkgver
+    rm -rf build; ln -s ../buildpy2 build
+    python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Deleted: certs.patch
===================================================================
--- certs.patch	2015-03-20 18:02:41 UTC (rev 234249)
+++ certs.patch	2015-03-20 18:04:01 UTC (rev 234250)
@@ -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 234249, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2015-03-20 18:04:01 UTC (rev 234250)
@@ -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