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

Massimiliano Torromeo mtorromeo at nymeria.archlinux.org
Thu May 30 08:19:49 UTC 2013


    Date: Thursday, May 30, 2013 @ 10:19:49
  Author: mtorromeo
Revision: 91941

archrelease: copy trunk to community-any

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

-------------+
 PKGBUILD    |  116 +++++++++++++++++++++++++++++-----------------------------
 certs.patch |   34 ++++++++---------
 2 files changed, 75 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-30 08:17:56 UTC (rev 91940)
+++ PKGBUILD	2013-05-30 08:19:49 UTC (rev 91941)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-requests
-pkgname=(python-requests python2-requests)
-pkgver=1.2.2
-pkgrel=1
-_libname=requests
-pkgdesc="Python HTTP for Humans."
-url="http://python-requests.org"
-makedepends=('python-distribute' 'python2-distribute')
-license=('custom: ISC')
-arch=('any')
-source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
-        certs.patch)
-
-build() {
-    cd "$srcdir/$_libname-$pkgver"
-    patch -p0 -i "$srcdir/certs.patch"
-    sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
-    rm -f requests/cacert.pem
-
-    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-grequests: asynchronous requests with gevent'
-                'python2-simplejson')
-
-    cd "$srcdir/$_libname-$pkgver"
-    rm -rf build; ln -s ../buildpy2 build
-    python2 setup.py install --skip-build -O1 --root="$pkgdir"
-    install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-sha256sums=('56929d7b5dec9b37a9a8520f15202bada0ad55d2888a7c3243b9b194f2ef603d'
-            '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Copied: python-requests/repos/community-any/PKGBUILD (from rev 91940, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-05-30 08:19:49 UTC (rev 91941)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=1.2.3
+pkgrel=1
+_libname=requests
+pkgdesc="Python HTTP for Humans."
+url="http://python-requests.org"
+makedepends=('python-distribute' 'python2-distribute')
+license=('custom: ISC')
+arch=('any')
+source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
+        certs.patch)
+
+build() {
+    cd "$srcdir/$_libname-$pkgver"
+    patch -p0 -i "$srcdir/certs.patch"
+    sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+    rm -f requests/cacert.pem
+
+    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-grequests: asynchronous requests with gevent'
+                'python2-simplejson')
+
+    cd "$srcdir/$_libname-$pkgver"
+    rm -rf build; ln -s ../buildpy2 build
+    python2 setup.py install --skip-build -O1 --root="$pkgdir"
+    install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha256sums=('156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1'
+            '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Deleted: certs.patch
===================================================================
--- certs.patch	2013-05-30 08:17:56 UTC (rev 91940)
+++ certs.patch	2013-05-30 08:19:49 UTC (rev 91941)
@@ -1,17 +0,0 @@
---- requests/certs.py.orig	2013-04-03 10:25:52.618680901 +0200
-+++ requests/certs.py	2013-04-03 10:26:29.291120949 +0200
-@@ -12,13 +12,11 @@
- packaged CA bundle.
- """
- 
--import os.path
--
- 
- 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 91940, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2013-05-30 08:19:49 UTC (rev 91941)
@@ -0,0 +1,17 @@
+--- requests/certs.py.orig	2013-04-03 10:25:52.618680901 +0200
++++ requests/certs.py	2013-04-03 10:26:29.291120949 +0200
+@@ -12,13 +12,11 @@
+ packaged CA bundle.
+ """
+ 
+-import os.path
+-
+ 
+ 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