[arch-commits] Commit in python-requests/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Oct 17 07:30:53 UTC 2018


    Date: Wednesday, October 17, 2018 @ 07:30:52
  Author: felixonmars
Revision: 336793

upgpkg: python-requests 2.19.1-3

fix compatibility with urllib3 1.24 (FS#60436)

Modified:
  python-requests/trunk/PKGBUILD

----------+
 PKGBUILD |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-17 06:41:18 UTC (rev 336792)
+++ PKGBUILD	2018-10-17 07:30:52 UTC (rev 336793)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.19.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org"
@@ -25,6 +25,8 @@
       -i setup.py
   patch -p1 -i "$srcdir"/certs.patch
 
+  sed -i 's/from urllib3.packages.ordered_dict import OrderedDict/from collections import OrderedDict/' requests/compat.py
+
   cd "$srcdir"
   cp -a requests-$pkgver{,-py2}
   find requests-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +



More information about the arch-commits mailing list