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

Massimiliano Torromeo mtorromeo at archlinux.org
Sun Dec 28 11:45:37 UTC 2014


    Date: Sunday, December 28, 2014 @ 12:45:37
  Author: mtorromeo
Revision: 124745

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-28 11:45:30 UTC (rev 124744)
+++ PKGBUILD	2014-12-28 11:45:37 UTC (rev 124745)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-requests
-pkgname=(python-requests python2-requests)
-pkgver=2.5.0
-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=('d2daef4919fc87262b8b3cb5a9d214cac8ce1e50950f8423bbc1d31c2e63d38e'
-            '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/community-any/PKGBUILD (from rev 124744, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-12-28 11:45:37 UTC (rev 124745)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=2.5.1
+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=('7b7735efd3b1e2323dc9fcef060b380d05f5f18bd0f247f5e9e74a628279de66'
+            '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"
+}

Deleted: certs.patch
===================================================================
--- certs.patch	2014-12-28 11:45:30 UTC (rev 124744)
+++ certs.patch	2014-12-28 11:45:37 UTC (rev 124745)
@@ -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/community-any/certs.patch (from rev 124744, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2014-12-28 11:45:37 UTC (rev 124745)
@@ -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