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

Felix Yan felixonmars at archlinux.org
Wed Jun 14 18:09:10 UTC 2017


    Date: Wednesday, June 14, 2017 @ 18:09:10
  Author: felixonmars
Revision: 298833

archrelease: copy trunk to extra-any

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

-------------+
 PKGBUILD    |  128 +++++++++++++++++++++++++++++-----------------------------
 certs.patch |   28 ++++++------
 2 files changed, 78 insertions(+), 78 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-14 18:08:53 UTC (rev 298832)
+++ PKGBUILD	2017-06-14 18:09:10 UTC (rev 298833)
@@ -1,64 +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.17.3
-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' 'python-idna' 'python2-idna')
-checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 'python-pytest-mock'
-              'python2-pytest-mock' 'python-pysocks' 'python2-pysocks')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz"
-        certs.patch)
-sha512sums=('e6eed37561201dec8184fad29d391110852cf5ef961eb51b87068595e261f48c238ee0c0f31488e88cb6aed61249b520a218822615aaaf80aaa9daafb2d57e3e'
-            '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
-
-prepare() {
-  cd "$srcdir"/requests-$pkgver
-  sed -i '/certifi/d' setup.py
-  patch -p1 -i "$srcdir"/certs.patch
-
-  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
-  py.test tests
-
-  cd "$srcdir"/requests-$pkgver-py2
-  py.test2 tests
-}
-
-package_python-requests() {
-  depends=('python-urllib3' 'python-chardet' 'python-idna')
-  optdepends=('python-pysocks: SOCKS proxy support')
-
-  cd "$srcdir"/requests-$pkgver
-  python setup.py install --skip-build -O1 --root="$pkgdir"
-}
-
-package_python2-requests() {
-  depends=('python2-urllib3' 'python2-chardet' 'python2-idna')
-  optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
-              'python2-grequests: asynchronous requests with gevent'
-              'python2-pysocks: SOCKS proxy support')
-
-  cd "$srcdir"/requests-$pkgver-py2
-  python2 setup.py install --skip-build -O1 --root="$pkgdir"
-}

Copied: python-requests/repos/extra-any/PKGBUILD (from rev 298832, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-06-14 18:09:10 UTC (rev 298833)
@@ -0,0 +1,64 @@
+# $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.18.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' 'python-idna' 'python2-idna')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 'python-pytest-mock'
+              'python2-pytest-mock' 'python-pysocks' 'python2-pysocks')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz"
+        certs.patch)
+sha512sums=('a80e0487b4b729e69522817bc2eec2a9c5f1df34df385581b3e937c2409e0fcb4e1f9b4794b198c8b8a57fc05b1bc513fc70d41b324ae251de0fa9bc7c9e6947'
+            '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -i '/certifi/d' setup.py
+  patch -p1 -i "$srcdir"/certs.patch
+
+  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
+  py.test tests
+
+  cd "$srcdir"/requests-$pkgver-py2
+  py.test2 tests
+}
+
+package_python-requests() {
+  depends=('python-urllib3' 'python-chardet' 'python-idna')
+  optdepends=('python-pysocks: SOCKS proxy support')
+
+  cd "$srcdir"/requests-$pkgver
+  python setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
+package_python2-requests() {
+  depends=('python2-urllib3' 'python2-chardet' 'python2-idna')
+  optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+              'python2-grequests: asynchronous requests with gevent'
+              'python2-pysocks: SOCKS proxy support')
+
+  cd "$srcdir"/requests-$pkgver-py2
+  python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Deleted: certs.patch
===================================================================
--- certs.patch	2017-06-14 18:08:53 UTC (rev 298832)
+++ certs.patch	2017-06-14 18:09:10 UTC (rev 298833)
@@ -1,14 +0,0 @@
-diff --git a/requests/certs.py b/requests/certs.py
-index d1a378d7..4e0bffd4 100644
---- a/requests/certs.py
-+++ b/requests/certs.py
-@@ -12,7 +12,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
- environment, you can change the definition of where() to return a separately
- packaged CA bundle.
- """
--from certifi import where
-+def where():
-+    return "/etc/ssl/certs/ca-certificates.crt"
- 
- if __name__ == '__main__':
-     print(where())

Copied: python-requests/repos/extra-any/certs.patch (from rev 298832, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2017-06-14 18:09:10 UTC (rev 298833)
@@ -0,0 +1,14 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index d1a378d7..4e0bffd4 100644
+--- a/requests/certs.py
++++ b/requests/certs.py
+@@ -12,7 +12,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
+ environment, you can change the definition of where() to return a separately
+ packaged CA bundle.
+ """
+-from certifi import where
++def where():
++    return "/etc/ssl/certs/ca-certificates.crt"
+ 
+ if __name__ == '__main__':
+     print(where())



More information about the arch-commits mailing list