[arch-commits] Commit in python-requests/repos/community-any (4 files)
Massimiliano Torromeo
mtorromeo at nymeria.archlinux.org
Tue Jan 28 08:36:18 UTC 2014
Date: Tuesday, January 28, 2014 @ 09:36:17
Author: mtorromeo
Revision: 104908
archrelease: copy trunk to community-any
Added:
python-requests/repos/community-any/PKGBUILD
(from rev 104907, python-requests/trunk/PKGBUILD)
python-requests/repos/community-any/certs.patch
(from rev 104907, python-requests/trunk/certs.patch)
Deleted:
python-requests/repos/community-any/PKGBUILD
python-requests/repos/community-any/certs.patch
-------------+
PKGBUILD | 120 +++++++++++++++++++++++++++++-----------------------------
certs.patch | 34 ++++++++--------
2 files changed, 77 insertions(+), 77 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-28 08:34:26 UTC (rev 104907)
+++ PKGBUILD 2014-01-28 08:36:17 UTC (rev 104908)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-requests
-pkgname=(python-requests python2-requests)
-pkgver=2.2.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)
-
-prepare() {
- 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
-}
-
-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"
-}
-
-sha256sums=('1ff74f88bbfddf94f92aa20bd8473c7d46d3398c95b1842d81b2f3c475d5625d'
- '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')
Copied: python-requests/repos/community-any/PKGBUILD (from rev 104907, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-01-28 08:36:17 UTC (rev 104908)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=2.2.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)
+
+prepare() {
+ 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
+}
+
+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"
+}
+
+sha256sums=('1266921f1bed5fbf364cd83cf239b6d7b3ea5c32ccccbc93980d9ba12cdcfd02'
+ '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')
Deleted: certs.patch
===================================================================
--- certs.patch 2014-01-28 08:34:26 UTC (rev 104907)
+++ certs.patch 2014-01-28 08:36:17 UTC (rev 104908)
@@ -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 104907, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch (rev 0)
+++ certs.patch 2014-01-28 08:36:17 UTC (rev 104908)
@@ -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