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

2020-12-17 Thread Felix Yan via arch-commits
Date: Thursday, December 17, 2020 @ 09:19:25
  Author: felixonmars
Revision: 404429

upgpkg: python-requests 2.25.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-12-17 09:16:36 UTC (rev 404428)
+++ PKGBUILD2020-12-17 09:19:25 UTC (rev 404429)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.25.0
+pkgver=2.25.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -14,7 +14,7 @@
 checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 
'python-pyopenssl')
 
source=("$pkgbase-$pkgver.tar.gz::https://github.com/psf/requests/archive/v$pkgver.tar.gz";
 certs.patch)
-sha512sums=('f60d8dbbc7aaebaedc7647ab2cec1fffd01547ea3340b91d9c7fea51fde4cb932aaf81e3b8aac9f4be11243e4fc44c8266a69db5f52c4eb2afb1b7714c150b95'
+sha512sums=('e4fc90b229925a2b580e5cd85c39e8b0fe8006e1e49d247efc38616120ffdab319fc200424eeb4fb7175114daf1b6f98ba5c2f4baa00ce17fdc79e880df60ad8'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2020-11-14 Thread Felix Yan via arch-commits
Date: Saturday, November 14, 2020 @ 20:28:53
  Author: felixonmars
Revision: 401121

upgpkg: python-requests 2.25.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-14 17:25:26 UTC (rev 401120)
+++ PKGBUILD2020-11-14 20:28:53 UTC (rev 401121)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.24.0
-pkgrel=3
+pkgver=2.25.0
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -14,7 +14,7 @@
 checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 
'python-pyopenssl')
 
source=("$pkgbase-$pkgver.tar.gz::https://github.com/psf/requests/archive/v$pkgver.tar.gz";
 certs.patch)
-sha512sums=('a7ce3775f1f38a98cf6ae445637a46cf27f903fc8aa3f535bac5032d628f1661cbfb10cb1e6bc60e703a9216cc46adcb903dfb8b7a2ff8a8f4f1442d9f2229f1'
+sha512sums=('f60d8dbbc7aaebaedc7647ab2cec1fffd01547ea3340b91d9c7fea51fde4cb932aaf81e3b8aac9f4be11243e4fc44c8266a69db5f52c4eb2afb1b7714c150b95'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2020-11-10 Thread Evangelos Foutras via arch-commits
Date: Wednesday, November 11, 2020 @ 06:52:45
  Author: foutrelis
Revision: 400227

upgpkg: python-requests 2.24.0-3: Python 3.9 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-11 06:52:19 UTC (rev 400226)
+++ PKGBUILD2020-11-11 06:52:45 UTC (rev 400227)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.24.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2020-11-09 Thread Felix Yan via arch-commits
Date: Monday, November 9, 2020 @ 12:08:21
  Author: felixonmars
Revision: 399700

upgpkg: python-requests 2.24.0-2: Python 3.9 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-09 12:07:42 UTC (rev 399699)
+++ PKGBUILD2020-11-09 12:08:21 UTC (rev 399700)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.24.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2020-06-17 Thread Felix Yan via arch-commits
Date: Wednesday, June 17, 2020 @ 17:04:39
  Author: felixonmars
Revision: 389436

upgpkg: python-requests 2.24.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-06-17 16:31:23 UTC (rev 389435)
+++ PKGBUILD2020-06-17 17:04:39 UTC (rev 389436)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.23.0
+pkgver=2.24.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -13,15 +13,12 @@
  'python-urllib3' 'python2-urllib3' 'python-idna' 'python2-idna')
 checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 
'python-pyopenssl')
 
source=("$pkgbase-$pkgver.tar.gz::https://github.com/psf/requests/archive/v$pkgver.tar.gz";
-certs.patch
-
"requests-pytest-5.patch::https://github.com/psf/requests/pull/5305.patch";)
-sha512sums=('a8e670d928fce3531629a6d73ee6b47882f3eba47684841bfce44376781b2b9c5c97186e1750ee582b0c11fa67c983f340f95eb2a4f19042f4cbc77ae090a69c'
-
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3'
-
'560aa7d31b51ca2b59cf93cf41c2dcaa648950119653f09ebcd9be2475f5719bf6116c7043d6eb5b317da37bc9893774d46fbc22a14623314f3fd30bc8f62092')
+certs.patch)
+sha512sums=('a7ce3775f1f38a98cf6ae445637a46cf27f903fc8aa3f535bac5032d628f1661cbfb10cb1e6bc60e703a9216cc46adcb903dfb8b7a2ff8a8f4f1442d9f2229f1'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
-  patch -p1 -i ../requests-pytest-5.patch
   sed -e '/certifi/d' \
   -e "s/,<.*'/'/" \
   -i setup.py


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

2020-02-13 Thread Felix Yan via arch-commits
Date: Thursday, February 13, 2020 @ 08:57:14
  Author: felixonmars
Revision: 375522

upgpkg: python-requests 2.22.0-4

- fix tests for pytest 5
- disable tests for python2
- deselect tests in a better way

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   22 ++
 1 file changed, 10 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-13 08:45:37 UTC (rev 375521)
+++ PKGBUILD2020-02-13 08:57:14 UTC (rev 375522)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.22.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -11,20 +11,21 @@
 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' 
'python-pyopenssl'
-  'python2-pyopenssl')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz";
+checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 
'python-pyopenssl')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/psf/requests/archive/v$pkgver.tar.gz";
 "0001-Support-pytest-4.patch"
-certs.patch)
+certs.patch
+
"requests-pytest-5.patch::https://github.com/psf/requests/pull/5305.patch";)
 
sha512sums=('1259c270e343fc860322b105904232226f26b3b363e9d102d599020fcc7b6e1d524dc6c650181ce3152caebe11d2c60045ddd9c9fc04560294caa284e209c386'
 
'36ac0f06bbeb893e4cc4108e7421de5b9c5e5bff82d5f0e227a1ebde0a5df4ca57236762b45e5025aea4724f1fc320f9f32665a57c77b958e9c05efbe317ccc1'
-
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3'
+
'560aa7d31b51ca2b59cf93cf41c2dcaa648950119653f09ebcd9be2475f5719bf6116c7043d6eb5b317da37bc9893774d46fbc22a14623314f3fd30bc8f62092')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
   # pytest 4 support
   patch -p1 -i ../0001-Support-pytest-4.patch
+  patch -p1 -i ../requests-pytest-5.patch
   sed -e '/certifi/d' \
   -e "s/,<.*'/'/" \
   -i setup.py
@@ -46,11 +47,8 @@
 check() {
   # Seems to be a problem about pytest-httpbin
 
-  cd "$srcdir"/requests-$pkgver
-  py.test tests -k "not test_https_warnings"
-
-  cd "$srcdir"/requests-$pkgver-py2
-  py.test2 tests -k "not test_https_warnings"
+  cd requests-$pkgver
+  pytest tests --deselect 
tests/test_requests.py::TestRequests::test_https_warnings
 }
 
 package_python-requests() {


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

2019-10-25 Thread Felix Yan via arch-commits
Date: Friday, October 25, 2019 @ 14:59:41
  Author: felixonmars
Revision: 365587

Python 3.8 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-25 14:59:40 UTC (rev 365586)
+++ PKGBUILD2019-10-25 14:59:41 UTC (rev 365587)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.22.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2019-10-25 Thread Evangelos Foutras via arch-commits
Date: Friday, October 25, 2019 @ 14:16:33
  Author: foutrelis
Revision: 365565

Python 3.8 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-25 14:14:32 UTC (rev 365564)
+++ PKGBUILD2019-10-25 14:16:33 UTC (rev 365565)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.22.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2018-12-30 Thread Felix Yan via arch-commits
Date: Sunday, December 30, 2018 @ 09:44:17
  Author: felixonmars
Revision: 342798

upgpkg: python-requests 2.21.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-12-30 09:19:09 UTC (rev 342797)
+++ PKGBUILD2018-12-30 09:44:17 UTC (rev 342798)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.20.1
+pkgver=2.21.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -15,7 +15,7 @@
   '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=('939361477f2354a926d419e4cda5f68da2c3c456089982f1f07ac5e6af54f338f78e5d7f716827324b1a8c484947e3e07484b4677c38d79c34ea071bb18d0dc6'
+sha512sums=('934c329e6631ec6089577c49651b73265f0c3f0829b9151e1463dea905f35820a03ec3b0ee6a2ab2292d213b715f0b2348110392d60f55ea1cbe4b24fca4f890'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2018-11-08 Thread Felix Yan via arch-commits
Date: Thursday, November 8, 2018 @ 17:33:25
  Author: felixonmars
Revision: 338390

upgpkg: python-requests 2.20.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-08 15:07:17 UTC (rev 338389)
+++ PKGBUILD2018-11-08 17:33:25 UTC (rev 338390)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.20.0
+pkgver=2.20.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -15,7 +15,7 @@
   '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=('766c69d1778e7286232fcd750842e89cd9bb6637076e80fe95fb67f3ccb14049bf74a533de91ef9451ac6f397ad0a6d148eb444009f501178138cdeffc5ee7c4'
+sha512sums=('939361477f2354a926d419e4cda5f68da2c3c456089982f1f07ac5e6af54f338f78e5d7f716827324b1a8c484947e3e07484b4677c38d79c34ea071bb18d0dc6'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2018-10-18 Thread Felix Yan via arch-commits
Date: Friday, October 19, 2018 @ 02:32:25
  Author: felixonmars
Revision: 336863

upgpkg: python-requests 2.20.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-10-19 01:49:44 UTC (rev 336862)
+++ PKGBUILD2018-10-19 02:32:25 UTC (rev 336863)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.19.1
-pkgrel=3
+pkgver=2.20.0
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -15,7 +15,7 @@
   '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=('00adbbe63c88117fce25e4e2de4ddfb62f87276d627f97aaf8bc4afbf59a921cac57b87f51a0d99167b42d311fe8ca9723b2c5d3a9e04fb0ee318bf90fd9d4ed'
+sha512sums=('766c69d1778e7286232fcd750842e89cd9bb6637076e80fe95fb67f3ccb14049bf74a533de91ef9451ac6f397ad0a6d148eb444009f501178138cdeffc5ee7c4'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {
@@ -25,8 +25,6 @@
   -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 {} +


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

2018-10-17 Thread Felix Yan via arch-commits
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
===
--- PKGBUILD2018-10-17 06:41:18 UTC (rev 336792)
+++ PKGBUILD2018-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 {} +


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

2018-06-30 Thread Felix Yan via arch-commits
Date: Saturday, June 30, 2018 @ 09:43:23
  Author: felixonmars
Revision: 327836

upgpkg: python-requests 2.19.1-2

Python 3.7 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-30 09:26:00 UTC (rev 327835)
+++ PKGBUILD2018-06-30 09:43:23 UTC (rev 327836)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.19.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2018-06-14 Thread Felix Yan via arch-commits
Date: Friday, June 15, 2018 @ 01:54:51
  Author: felixonmars
Revision: 326999

upgpkg: python-requests 2.19.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-14 19:48:45 UTC (rev 326998)
+++ PKGBUILD2018-06-15 01:54:51 UTC (rev 326999)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.19.0
+pkgver=2.19.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -16,7 +16,7 @@
   '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=('832ce7e3a67863ed2d241617e9ba983db470f0dbccd78ecb96b5bec2e1d76aa895553d4922bc4c30836e72401213c16ba0098f73dc4e2bc43a8fc36cd4c0ed00'
+sha512sums=('00adbbe63c88117fce25e4e2de4ddfb62f87276d627f97aaf8bc4afbf59a921cac57b87f51a0d99167b42d311fe8ca9723b2c5d3a9e04fb0ee318bf90fd9d4ed'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2018-06-12 Thread Felix Yan via arch-commits
Date: Tuesday, June 12, 2018 @ 17:59:10
  Author: felixonmars
Revision: 326854

upgpkg: python-requests 2.19.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-12 17:55:28 UTC (rev 326853)
+++ PKGBUILD2018-06-12 17:59:10 UTC (rev 326854)
@@ -4,8 +4,8 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.18.4
-pkgrel=4
+pkgver=2.19.0
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -15,19 +15,15 @@
 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
-
https://github.com/yan12125/requests/commit/30b5079f46fa9e853a9efe635b60acdb172d250d.patch)
-sha512sums=('8ca20fe18d13b8c62977be0c51617f2ae8618d3d002ad4dc554362828855db7359274efbff0cd13e8c5699508913e91205cffcf306221a70321e74ac10b2d4d7'
-
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3'
-
'1f63f76df4c819e5a6dbd8d32d6f3a5cfc22c569ebe9551310629dee24fe7d5566d47bcf1a689ada9d103318be779e2ded24b0c1b8e8100fdd365890c0b87448')
+certs.patch)
+sha512sums=('832ce7e3a67863ed2d241617e9ba983db470f0dbccd78ecb96b5bec2e1d76aa895553d4922bc4c30836e72401213c16ba0098f73dc4e2bc43a8fc36cd4c0ed00'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
   sed -e '/certifi/d' \
-  -e 's/urllib3>=1.21.1,<1.23/urllib3>=1.21.1/' \
-  -e 's/idna>=2.5,<2.7/idna>=2.5/' \
+  -e "s/,<.*'/'/" \
   -i setup.py
-  patch -p1 -i ../30b5079f46fa9e853a9efe635b60acdb172d250d.patch
   patch -p1 -i "$srcdir"/certs.patch
 
   cd "$srcdir"


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

2018-06-11 Thread Felix Yan via arch-commits
Date: Monday, June 11, 2018 @ 07:16:12
  Author: felixonmars
Revision: 326703

upgpkg: python-requests 2.18.4-4

allow idna 2.7

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-11 07:10:29 UTC (rev 326702)
+++ PKGBUILD2018-06-11 07:16:12 UTC (rev 326703)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.18.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -24,7 +24,8 @@
 prepare() {
   cd "$srcdir"/requests-$pkgver
   sed -e '/certifi/d' \
-  -e 's/urllib3>=1.21.1,<1.23/urllib3>=1.21.1,<1.24/' \
+  -e 's/urllib3>=1.21.1,<1.23/urllib3>=1.21.1/' \
+  -e 's/idna>=2.5,<2.7/idna>=2.5/' \
   -i setup.py
   patch -p1 -i ../30b5079f46fa9e853a9efe635b60acdb172d250d.patch
   patch -p1 -i "$srcdir"/certs.patch


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

2018-06-06 Thread Felix Yan via arch-commits
Date: Wednesday, June 6, 2018 @ 17:57:08
  Author: felixonmars
Revision: 326050

upgpkg: python-requests 2.18.4-3

second try on FS#58878

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-06-06 17:13:23 UTC (rev 326049)
+++ PKGBUILD2018-06-06 17:57:08 UTC (rev 326050)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.18.4
-pkgrel=2
+pkgrel=3
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -15,9 +15,11 @@
 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)
+certs.patch
+
https://github.com/yan12125/requests/commit/30b5079f46fa9e853a9efe635b60acdb172d250d.patch)
 
sha512sums=('8ca20fe18d13b8c62977be0c51617f2ae8618d3d002ad4dc554362828855db7359274efbff0cd13e8c5699508913e91205cffcf306221a70321e74ac10b2d4d7'
-
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3'
+
'1f63f76df4c819e5a6dbd8d32d6f3a5cfc22c569ebe9551310629dee24fe7d5566d47bcf1a689ada9d103318be779e2ded24b0c1b8e8100fdd365890c0b87448')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
@@ -24,6 +26,7 @@
   sed -e '/certifi/d' \
   -e 's/urllib3>=1.21.1,<1.23/urllib3>=1.21.1,<1.24/' \
   -i setup.py
+  patch -p1 -i ../30b5079f46fa9e853a9efe635b60acdb172d250d.patch
   patch -p1 -i "$srcdir"/certs.patch
 
   cd "$srcdir"


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

2018-06-05 Thread Felix Yan via arch-commits
Date: Tuesday, June 5, 2018 @ 15:44:25
  Author: felixonmars
Revision: 325923

upgpkg: python-requests 2.18.4-2

bump upper bound for urllib3

Modified:
  python-requests/trunk/PKGBUILD

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

Modified: PKGBUILD
===
--- PKGBUILD2018-06-05 15:24:56 UTC (rev 325922)
+++ PKGBUILD2018-06-05 15:44:25 UTC (rev 325923)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.18.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -22,6 +22,7 @@
 prepare() {
   cd "$srcdir"/requests-$pkgver
   sed -e '/certifi/d' \
+  -e 's/urllib3>=1.21.1,<1.23/urllib3>=1.21.1,<1.24/' \
   -i setup.py
   patch -p1 -i "$srcdir"/certs.patch
 


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

2017-08-15 Thread Felix Yan
Date: Tuesday, August 15, 2017 @ 14:56:15
  Author: felixonmars
Revision: 302212

upgpkg: python-requests 2.18.4-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-08-15 14:10:20 UTC (rev 302211)
+++ PKGBUILD2017-08-15 14:56:15 UTC (rev 302212)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.18.3
+pkgver=2.18.4
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -16,7 +16,7 @@
   '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=('23fa5386ff7a7f28e9fedd43cb804c488084f73fe4e4bf262161bb3d538cd2de67d965e6f005731ca10fe6c9b49760c24abbdc0435bbfe729a1ea2d7c1a8101b'
+sha512sums=('8ca20fe18d13b8c62977be0c51617f2ae8618d3d002ad4dc554362828855db7359274efbff0cd13e8c5699508913e91205cffcf306221a70321e74ac10b2d4d7'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2017-08-02 Thread Felix Yan
Date: Wednesday, August 2, 2017 @ 14:31:49
  Author: felixonmars
Revision: 301531

upgpkg: python-requests 2.18.3-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-08-02 07:55:12 UTC (rev 301530)
+++ PKGBUILD2017-08-02 14:31:49 UTC (rev 301531)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.18.2
+pkgver=2.18.3
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -16,7 +16,7 @@
   '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=('1fc7462409b6431a2b7867bb3d01ac08a896a0ca32600dab33bc6b631a8e6b10c0401f1280244a8cb93e3c0eb88ae3d6bea2055110663718651c8d68ffed9196'
+sha512sums=('23fa5386ff7a7f28e9fedd43cb804c488084f73fe4e4bf262161bb3d538cd2de67d965e6f005731ca10fe6c9b49760c24abbdc0435bbfe729a1ea2d7c1a8101b'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2017-07-25 Thread Felix Yan
Date: Tuesday, July 25, 2017 @ 17:47:22
  Author: felixonmars
Revision: 301260

upgpkg: python-requests 2.18.2-1

Modified:
  python-requests/trunk/PKGBUILD

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

Modified: PKGBUILD
===
--- PKGBUILD2017-07-25 17:21:00 UTC (rev 301259)
+++ PKGBUILD2017-07-25 17:47:22 UTC (rev 301260)
@@ -4,8 +4,8 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.18.1
-pkgrel=2
+pkgver=2.18.2
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -16,13 +16,12 @@
   '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'
+sha512sums=('1fc7462409b6431a2b7867bb3d01ac08a896a0ca32600dab33bc6b631a8e6b10c0401f1280244a8cb93e3c0eb88ae3d6bea2055110663718651c8d68ffed9196'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
   sed -e '/certifi/d' \
-  -e 's/urllib3>=1.21.1,<1.22/urllib3>=1.21.1,<1.23/' \
   -i setup.py
   patch -p1 -i "$srcdir"/certs.patch
 


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

2017-07-22 Thread Felix Yan
Date: Saturday, July 22, 2017 @ 18:42:56
  Author: felixonmars
Revision: 301165

upgpkg: python-requests 2.18.1-2

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-07-22 18:38:54 UTC (rev 301164)
+++ PKGBUILD2017-07-22 18:42:56 UTC (rev 301165)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.18.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
@@ -21,7 +21,9 @@
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
-  sed -i '/certifi/d' setup.py
+  sed -e '/certifi/d' \
+  -e 's/urllib3>=1.21.1,<1.22/urllib3>=1.21.1,<1.23/' \
+  -i setup.py
   patch -p1 -i "$srcdir"/certs.patch
 
   cd "$srcdir"


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

2017-06-14 Thread Felix Yan
Date: Wednesday, June 14, 2017 @ 18:08:53
  Author: felixonmars
Revision: 298832

upgpkg: python-requests 2.18.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-06-14 17:19:34 UTC (rev 298831)
+++ PKGBUILD2017-06-14 18:08:53 UTC (rev 298832)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.17.3
+pkgver=2.18.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -16,7 +16,7 @@
   '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'
+sha512sums=('a80e0487b4b729e69522817bc2eec2a9c5f1df34df385581b3e937c2409e0fcb4e1f9b4794b198c8b8a57fc05b1bc513fc70d41b324ae251de0fa9bc7c9e6947'
 
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {


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

2017-06-05 Thread Felix Yan
Date: Tuesday, June 6, 2017 @ 04:11:31
  Author: felixonmars
Revision: 297830

upgpkg: python-requests 2.17.3-1

Modified:
  python-requests/trunk/PKGBUILD
  python-requests/trunk/certs.patch

-+
 PKGBUILD|   28 +---
 certs.patch |   15 ---
 2 files changed, 17 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-06-06 03:35:08 UTC (rev 297829)
+++ PKGBUILD2017-06-06 04:11:31 UTC (rev 297830)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.14.2
+pkgver=2.17.3
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -11,26 +11,19 @@
 url="http://python-requests.org";
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 
'python2-chardet'
- 'python-urllib3' 'python2-urllib3' 'python-pysocks' 
'python2-pysocks' 'git')
+ 'python-urllib3' 'python2-urllib3' 'python-idna' 'python2-idna')
 checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock'
-  'python2-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=('a9f2b612bbfc4ce27c9a96bfac052f01329f2adbde7f188ee5507419f73252f282ebe68616df93a8c32680998c85ee7adf683893801df24439de8f0ed02af0a2'
-
'b7b2e6aefb8e1ebfa24816bf1a48e45ef27244e23d75e2ac17fc6e8f8fb33846f55c68eca1a03077642dd1fae43b6dfed54e9f5aff382ea4fb4a70287c2fa9ed')
+sha512sums=('e6eed37561201dec8184fad29d391110852cf5ef961eb51b87068595e261f48c238ee0c0f31488e88cb6aed61249b520a218822615aaaf80aaa9daafb2d57e3e'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
 
 prepare() {
   cd "$srcdir"/requests-$pkgver
-
+  sed -i '/certifi/d' setup.py
   patch -p1 -i "$srcdir"/certs.patch
-  sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
-  rm -f requests/cacert.pem
 
-  rm -r requests/packages/{urllib3,chardet}
-  sed -e '/packages.chardet/d' \
-  -e '/packages.urllib3/d' \
-  -i setup.py
-
   cd "$srcdir"
   cp -a requests-$pkgver{,-py2}
   find requests-$pkgver-py2 -name \*.py -exec sed -r 
's|^#!(.*)python$|#!\1python2|' -i {} +
@@ -46,25 +39,22 @@
 
 check() {
   cd "$srcdir"/requests-$pkgver
-  test -f "$(python -m requests.certs)"
   py.test tests
 
   cd "$srcdir"/requests-$pkgver-py2
-  test -f "$(python2 -m requests.certs)"
-  py.test2 tests || warning "Tests failed"
+  py.test2 tests
 }
 
 package_python-requests() {
-  depends=('python-urllib3' 'python-chardet')
+  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"
-  install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-requests() {
-  depends=('python2-urllib3' 'python2-chardet')
+  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')

Modified: certs.patch
===
--- certs.patch 2017-06-06 03:35:08 UTC (rev 297829)
+++ certs.patch 2017-06-06 04:11:31 UTC (rev 297830)
@@ -1,13 +1,14 @@
 diff --git a/requests/certs.py b/requests/certs.py
-index 07e6475..33db011 100644
+index d1a378d7..4e0bffd4 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"
+@@ -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())


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

2017-05-11 Thread Felix Yan
Date: Friday, May 12, 2017 @ 05:14:17
  Author: felixonmars
Revision: 295858

upgpkg: python-requests 2.14.2-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   26 +-
 1 file changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-05-12 04:20:27 UTC (rev 295857)
+++ PKGBUILD2017-05-12 05:14:17 UTC (rev 295858)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.13.0
+pkgver=2.14.2
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -14,13 +14,13 @@
  'python-urllib3' 'python2-urllib3' 'python-pysocks' 
'python2-pysocks' 'git')
 checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock'
   'python2-pytest-mock')
-source=("git+https://github.com/kennethreitz/requests.git#tag=v$pkgver";
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz";
 certs.patch)
-sha256sums=('SKIP'
-'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+sha512sums=('a9f2b612bbfc4ce27c9a96bfac052f01329f2adbde7f188ee5507419f73252f282ebe68616df93a8c32680998c85ee7adf683893801df24439de8f0ed02af0a2'
+
'b7b2e6aefb8e1ebfa24816bf1a48e45ef27244e23d75e2ac17fc6e8f8fb33846f55c68eca1a03077642dd1fae43b6dfed54e9f5aff382ea4fb4a70287c2fa9ed')
 
 prepare() {
-  cd "$srcdir"/requests
+  cd "$srcdir"/requests-$pkgver
 
   patch -p1 -i "$srcdir"/certs.patch
   sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
@@ -32,24 +32,24 @@
   -i setup.py
 
   cd "$srcdir"
-  cp -a requests{,-py2}
-  find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
+  cp -a requests-$pkgver{,-py2}
+  find requests-$pkgver-py2 -name \*.py -exec sed -r 
's|^#!(.*)python$|#!\1python2|' -i {} +
 }
 
 build() {
-  cd "$srcdir"/requests
+  cd "$srcdir"/requests-$pkgver
   python setup.py build
 
-  cd "$srcdir"/requests-py2
+  cd "$srcdir"/requests-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/requests
+  cd "$srcdir"/requests-$pkgver
   test -f "$(python -m requests.certs)"
   py.test tests
 
-  cd "$srcdir"/requests-py2
+  cd "$srcdir"/requests-$pkgver-py2
   test -f "$(python2 -m requests.certs)"
   py.test2 tests || warning "Tests failed"
 }
@@ -58,7 +58,7 @@
   depends=('python-urllib3' 'python-chardet')
   optdepends=('python-pysocks: SOCKS proxy support')
 
-  cd "$srcdir"/requests
+  cd "$srcdir"/requests-$pkgver
   python setup.py install --skip-build -O1 --root="$pkgdir"
   install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -69,6 +69,6 @@
   'python2-grequests: asynchronous requests with gevent'
   'python2-pysocks: SOCKS proxy support')
 
-  cd "$srcdir"/requests-py2
+  cd "$srcdir"/requests-$pkgver-py2
   python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }


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

2017-01-25 Thread Felix Yan
Date: Thursday, January 26, 2017 @ 06:49:27
  Author: felixonmars
Revision: 287497

upgpkg: python-requests 2.13.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-26 02:58:40 UTC (rev 287496)
+++ PKGBUILD2017-01-26 06:49:27 UTC (rev 287497)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.12.5
+pkgver=2.13.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')


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

2017-01-19 Thread Felix Yan
Date: Thursday, January 19, 2017 @ 15:26:45
  Author: felixonmars
Revision: 286974

upgpkg: python-requests 2.12.5-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-19 15:18:29 UTC (rev 286973)
+++ PKGBUILD2017-01-19 15:26:45 UTC (rev 286974)
@@ -4,8 +4,8 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.12.4
-pkgrel=2
+pkgver=2.12.5
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2016-12-24 Thread Felix Yan
Date: Sunday, December 25, 2016 @ 02:36:19
  Author: felixonmars
Revision: 284713

upgpkg: python-requests 2.12.4-2

python 3.6 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-24 23:58:01 UTC (rev 284712)
+++ PKGBUILD2016-12-25 02:36:19 UTC (rev 284713)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.12.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2016-12-15 Thread Felix Yan
Date: Thursday, December 15, 2016 @ 08:42:11
  Author: felixonmars
Revision: 283323

upgpkg: python-requests 2.12.4-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-15 08:37:37 UTC (rev 283322)
+++ PKGBUILD2016-12-15 08:42:11 UTC (rev 283323)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.12.3
+pkgver=2.12.4
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')


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

2016-12-01 Thread Felix Yan
Date: Friday, December 2, 2016 @ 02:12:23
  Author: felixonmars
Revision: 282504

upgpkg: python-requests 2.12.3-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-01 23:46:39 UTC (rev 282503)
+++ PKGBUILD2016-12-02 02:12:23 UTC (rev 282504)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.12.2
+pkgver=2.12.3
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')


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

2016-11-30 Thread Felix Yan
Date: Thursday, December 1, 2016 @ 06:35:12
  Author: felixonmars
Revision: 282404

upgpkg: python-requests 2.12.2-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-01 06:04:22 UTC (rev 282403)
+++ PKGBUILD2016-12-01 06:35:12 UTC (rev 282404)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.12.1
+pkgver=2.12.2
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')


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

2016-11-17 Thread Felix Yan
Date: Friday, November 18, 2016 @ 07:48:23
  Author: felixonmars
Revision: 281041

upgpkg: python-requests 2.12.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-11-18 07:47:54 UTC (rev 281040)
+++ PKGBUILD2016-11-18 07:48:23 UTC (rev 281041)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.11.1
+pkgver=2.12.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')


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

2016-08-20 Thread Felix Yan
Date: Saturday, August 20, 2016 @ 17:02:37
  Author: felixonmars
Revision: 274084

upgpkg: python-requests 2.11.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   69 +++--
 1 file changed, 36 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-08-20 17:00:27 UTC (rev 274083)
+++ PKGBUILD2016-08-20 17:02:37 UTC (rev 274084)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.10.0
+pkgver=2.11.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -11,8 +11,9 @@
 url="http://python-requests.org";
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 
'python2-chardet'
- 'python-urllib3' 'python2-urllib3' 'git')
-checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock' 'python2-pytest-mock')
+ 'python-urllib3' 'python2-urllib3' 'python-pysocks' 
'python2-pysocks' 'git')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock'
+  'python2-pytest-mock')
 source=("git+https://github.com/kennethreitz/requests.git#tag=v$pkgver";
 certs.patch)
 sha256sums=('SKIP'
@@ -19,53 +20,55 @@
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
-cd "$srcdir"/requests
+  cd "$srcdir"/requests
 
-patch -p1 -i "$srcdir"/certs.patch
-sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
-rm -f requests/cacert.pem
+  patch -p1 -i "$srcdir"/certs.patch
+  sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+  rm -f requests/cacert.pem
 
-rm -r requests/packages/{urllib3,chardet}
-sed -e '/packages.chardet/d' \
--e '/packages.urllib3/d' \
--i setup.py
+  rm -r requests/packages/{urllib3,chardet}
+  sed -e '/packages.chardet/d' \
+  -e '/packages.urllib3/d' \
+  -i setup.py
 
-cd "$srcdir"
-cp -a requests{,-py2}
-find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
+  cd "$srcdir"
+  cp -a requests{,-py2}
+  find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
 }
 
 build() {
-cd "$srcdir"/requests
-python setup.py build
+  cd "$srcdir"/requests
+  python setup.py build
 
-cd "$srcdir"/requests-py2
-python2 setup.py build
+  cd "$srcdir"/requests-py2
+  python2 setup.py build
 }
 
 check() {
-cd "$srcdir"/requests
-test -f "$(python -m requests.certs)"
-py.test
+  cd "$srcdir"/requests
+  test -f "$(python -m requests.certs)"
+  py.test tests
 
-cd "$srcdir"/requests-py2
-test -f "$(python2 -m requests.certs)"
-py.test2
+  cd "$srcdir"/requests-py2
+  test -f "$(python2 -m requests.certs)"
+  py.test2 tests || warning "Tests failed"
 }
 
 package_python-requests() {
-depends=('python-urllib3' 'python-chardet')
+  depends=('python-urllib3' 'python-chardet')
+  optdepends=('python-pysocks: SOCKS proxy support')
 
-cd "$srcdir"/requests
-python setup.py install --skip-build -O1 --root="$pkgdir"
-install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  cd "$srcdir"/requests
+  python setup.py install --skip-build -O1 --root="$pkgdir"
+  install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-requests() {
-depends=('python2-urllib3' 'python2-chardet')
-optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
-'python2-grequests: asynchronous requests with gevent')
+  depends=('python2-urllib3' 'python2-chardet')
+  optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+  'python2-grequests: asynchronous requests with gevent'
+  'python2-pysocks: SOCKS proxy support')
 
-cd "$srcdir"/requests-py2
-python2 setup.py install --skip-build -O1 --root="$pkgdir"
+  cd "$srcdir"/requests-py2
+  python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }


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

2016-04-29 Thread Felix Yan
Date: Saturday, April 30, 2016 @ 06:30:21
  Author: fyan
Revision: 266672

upgpkg: python-requests 2.10.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-04-29 23:28:39 UTC (rev 266671)
+++ PKGBUILD2016-04-30 04:30:21 UTC (rev 266672)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.9.1
+pkgver=2.10.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -11,15 +11,15 @@
 url="http://python-requests.org";
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 
'python2-chardet'
- 'python-urllib3' 'python2-urllib3')
-checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
-source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
+ 'python-urllib3' 'python2-urllib3' 'git')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock' 'python2-pytest-mock')
+source=("git+https://github.com/kennethreitz/requests.git#tag=v$pkgver";
 certs.patch)
-sha256sums=('c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f'
+sha256sums=('SKIP'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
-cd "$srcdir"/requests-$pkgver
+cd "$srcdir"/requests
 
 patch -p1 -i "$srcdir"/certs.patch
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
@@ -31,24 +31,24 @@
 -i setup.py
 
 cd "$srcdir"
-cp -a requests-$pkgver{,-py2}
-find requests-$pkgver-py2 -name \*.py -exec sed -r 
's|^#!(.*)python$|#!\1python2|' -i {} +
+cp -a requests{,-py2}
+find requests-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
 }
 
 build() {
-cd "$srcdir"/requests-$pkgver
+cd "$srcdir"/requests
 python setup.py build
 
-cd "$srcdir"/requests-$pkgver-py2
+cd "$srcdir"/requests-py2
 python2 setup.py build
 }
 
 check() {
-cd "$srcdir"/requests-$pkgver
+cd "$srcdir"/requests
 test -f "$(python -m requests.certs)"
 py.test
 
-cd "$srcdir"/requests-$pkgver-py2
+cd "$srcdir"/requests-py2
 test -f "$(python2 -m requests.certs)"
 py.test2
 }
@@ -56,7 +56,7 @@
 package_python-requests() {
 depends=('python-urllib3' 'python-chardet')
 
-cd "$srcdir"/requests-$pkgver
+cd "$srcdir"/requests
 python setup.py install --skip-build -O1 --root="$pkgdir"
 install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -66,6 +66,6 @@
 optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
 'python2-grequests: asynchronous requests with gevent')
 
-cd "$srcdir"/requests-$pkgver-py2
+cd "$srcdir"/requests-py2
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }


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

2015-12-21 Thread Felix Yan
Date: Tuesday, December 22, 2015 @ 02:52:37
  Author: fyan
Revision: 257099

upgpkg: python-requests 2.9.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-21 22:44:47 UTC (rev 257098)
+++ PKGBUILD2015-12-22 01:52:37 UTC (rev 257099)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.9.0
+pkgver=2.9.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -15,7 +15,7 @@
 checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('4881966532b5a36c552244fd909de66d1b8c4a26086f56fd5837cfcde63f8eb8'
+sha256sums=('c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2015-12-15 Thread Felix Yan
Date: Wednesday, December 16, 2015 @ 03:42:11
  Author: fyan
Revision: 256266

upgpkg: python-requests 2.9.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-16 02:19:17 UTC (rev 256265)
+++ PKGBUILD2015-12-16 02:42:11 UTC (rev 256266)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.8.1
+pkgver=2.9.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -12,10 +12,10 @@
 license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 
'python2-chardet'
  'python-urllib3' 'python2-urllib3')
-checkdepends=('python-pytest' 'python2-pytest')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b'
+sha256sums=('4881966532b5a36c552244fd909de66d1b8c4a26086f56fd5837cfcde63f8eb8'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2015-10-13 Thread Felix Yan
Date: Wednesday, October 14, 2015 @ 03:43:35
  Author: fyan
Revision: 249237

upgpkg: python-requests 2.8.1-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-14 00:46:04 UTC (rev 249236)
+++ PKGBUILD2015-10-14 01:43:35 UTC (rev 249237)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.8.0
+pkgver=2.8.1
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -15,7 +15,7 @@
 checkdepends=('python-pytest' 'python2-pytest')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('b2f003589b60924909c0acde472590c5ea83906986a7a25b6f7929eb20923b7b'
+sha256sums=('84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2015-10-06 Thread Felix Yan
Date: Tuesday, October 6, 2015 @ 18:13:45
  Author: fyan
Revision: 248425

upgpkg: python-requests 2.8.0-1

- upstream new release
- unbundle chardet and urllib3

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   25 +++--
 1 file changed, 19 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-06 09:06:47 UTC (rev 248424)
+++ PKGBUILD2015-10-06 16:13:45 UTC (rev 248425)
@@ -4,24 +4,32 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.7.0
-pkgrel=2
+pkgver=2.8.0
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 
'python2-chardet'
+ 'python-urllib3' 'python2-urllib3')
+checkdepends=('python-pytest' 'python2-pytest')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d'
+sha256sums=('b2f003589b60924909c0acde472590c5ea83906986a7a25b6f7929eb20923b7b'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
 cd "$srcdir"/requests-$pkgver
+
 patch -p1 -i "$srcdir"/certs.patch
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
 
+rm -r requests/packages/{urllib3,chardet}
+sed -e '/packages.chardet/d' \
+-e '/packages.urllib3/d' \
+-i setup.py
+
 cd "$srcdir"
 cp -a requests-$pkgver{,-py2}
 find requests-$pkgver-py2 -name \*.py -exec sed -r 
's|^#!(.*)python$|#!\1python2|' -i {} +
@@ -38,10 +46,15 @@
 check() {
 cd "$srcdir"/requests-$pkgver
 test -f "$(python -m requests.certs)"
+py.test
+
+cd "$srcdir"/requests-$pkgver-py2
+test -f "$(python2 -m requests.certs)"
+py.test2
 }
 
 package_python-requests() {
-depends=('python')
+depends=('python-urllib3' 'python-chardet')
 
 cd "$srcdir"/requests-$pkgver
 python setup.py install --skip-build -O1 --root="$pkgdir"
@@ -49,7 +62,7 @@
 }
 
 package_python2-requests() {
-depends=('python2')
+depends=('python2-urllib3' 'python2-chardet')
 optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
 'python2-grequests: asynchronous requests with gevent')
 


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

2015-09-19 Thread Felix Yan
Date: Saturday, September 19, 2015 @ 14:55:04
  Author: fyan
Revision: 246615

upgpkg: python-requests 2.7.0-2

rebuild for python 3.5

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-19 12:49:01 UTC (rev 246614)
+++ PKGBUILD2015-09-19 12:55:04 UTC (rev 246615)
@@ -5,7 +5,7 @@
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
 pkgver=2.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="http://python-requests.org";


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

2015-05-03 Thread Felix Yan
Date: Sunday, May 3, 2015 @ 18:13:44
  Author: fyan
Revision: 238381

upgpkg: python-requests 2.7.0-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-03 10:55:44 UTC (rev 238380)
+++ PKGBUILD2015-05-03 16:13:44 UTC (rev 238381)
@@ -4,7 +4,7 @@
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.6.2
+pkgver=2.7.0
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -13,7 +13,7 @@
 makedepends=('python-setuptools' 'python2-setuptools')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('0577249d4b6c4b11fd97c28037e98664bfaa0559022fee7bcef6b752a106e505'
+sha256sums=('398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2015-04-24 Thread Felix Yan
Date: Friday, April 24, 2015 @ 10:39:53
  Author: fyan
Revision: 237990

upgpkg: python-requests 2.6.2-1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   24 
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-04-24 07:39:12 UTC (rev 237989)
+++ PKGBUILD2015-04-24 08:39:53 UTC (rev 237990)
@@ -1,9 +1,10 @@
 # $Id$
-# Maintainer: Massimiliano Torromeo 
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
 
 pkgbase=python-requests
 pkgname=('python-requests' 'python2-requests')
-pkgver=2.6.0
+pkgver=2.6.2
 pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
@@ -12,7 +13,7 @@
 makedepends=('python-setuptools' 'python2-setuptools')
 
source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75'
+sha256sums=('0577249d4b6c4b11fd97c28037e98664bfaa0559022fee7bcef6b752a106e505'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
@@ -20,17 +21,18 @@
 patch -p1 -i "$srcdir"/certs.patch
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
+
+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
 
-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 {} +
+cd "$srcdir"/requests-$pkgver-py2
+python2 setup.py build
 }
 
 check() {
@@ -42,7 +44,6 @@
 depends=('python')
 
 cd "$srcdir"/requests-$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
 }
@@ -52,7 +53,6 @@
 optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
 'python2-grequests: asynchronous requests with gevent')
 
-cd "$srcdir"/requests-$pkgver
-rm -rf build; ln -s ../buildpy2 build
+cd "$srcdir"/requests-$pkgver-py2
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }


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

2015-03-20 Thread Eric Bélanger
Date: Friday, March 20, 2015 @ 19:02:41
  Author: eric
Revision: 234249

upgpkg: python-requests 2.6.0-1

Upstream update, Clean up PKGBUILD

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   29 ++---
 1 file changed, 14 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-03-20 16:37:42 UTC (rev 234248)
+++ PKGBUILD2015-03-20 18:02:41 UTC (rev 234249)
@@ -2,22 +2,21 @@
 # Maintainer: Massimiliano Torromeo 
 
 pkgbase=python-requests
-pkgname=(python-requests python2-requests)
-pkgver=2.5.3
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.6.0
 pkgrel=1
-_libname=requests
-pkgdesc="Python HTTP for Humans."
+pkgdesc="Python HTTP for Humans"
+arch=('any')
 url="http://python-requests.org";
+license=('Apache')
 makedepends=('python-setuptools' 'python2-setuptools')
-license=('Apache')
-arch=('any')
-source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
+source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
 certs.patch)
-sha256sums=('55d7f5619daae94ec49ee81ed8c865e5a2a47f0bbf8e06cf94636bee103eaf65'
+sha256sums=('1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {
-cd "$srcdir"/$_libname-$pkgver
+cd "$srcdir"/requests-$pkgver
 patch -p1 -i "$srcdir"/certs.patch
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
@@ -24,7 +23,7 @@
 }
 
 build() {
-cd "$srcdir"/$_libname-$pkgver
+cd "$srcdir"/requests-$pkgver
 
 rm -rf ../buildpy3; mkdir ../buildpy3
 python setup.py build -b ../buildpy3
@@ -35,14 +34,14 @@
 }
 
 check() {
-cd "$srcdir"/$_libname-$pkgver
+cd "$srcdir"/requests-$pkgver
 test -f "$(python -m requests.certs)"
 }
 
 package_python-requests() {
-depends=(python)
+depends=('python')
 
-cd "$srcdir"/$_libname-$pkgver
+cd "$srcdir"/requests-$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
@@ -49,11 +48,11 @@
 }
 
 package_python2-requests() {
-depends=(python2)
+depends=('python2')
 optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
 'python2-grequests: asynchronous requests with gevent')
 
-cd "$srcdir"/$_libname-$pkgver
+cd "$srcdir"/requests-$pkgver
 rm -rf build; ln -s ../buildpy2 build
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }


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

2015-03-04 Thread Eric Bélanger
Date: Thursday, March 5, 2015 @ 06:04:48
  Author: eric
Revision: 232870

upgpkg: python-requests 2.5.3-1

Upstream update

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-03-05 04:25:08 UTC (rev 232869)
+++ PKGBUILD2015-03-05 05:04:48 UTC (rev 232870)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.5.1
+pkgver=2.5.3
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -13,7 +13,7 @@
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
 certs.patch)
-sha256sums=('7b7735efd3b1e2323dc9fcef060b380d05f5f18bd0f247f5e9e74a628279de66'
+sha256sums=('55d7f5619daae94ec49ee81ed8c865e5a2a47f0bbf8e06cf94636bee103eaf65'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2014-12-28 Thread Massimiliano Torromeo
Date: Sunday, December 28, 2014 @ 12:45:30
  Author: mtorromeo
Revision: 124744

upgpkg: python-requests 2.5.1-1

Updated to 2.5.1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-12-28 11:45:06 UTC (rev 124743)
+++ PKGBUILD2014-12-28 11:45:30 UTC (rev 124744)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.5.0
+pkgver=2.5.1
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -13,7 +13,7 @@
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
 certs.patch)
-sha256sums=('d2daef4919fc87262b8b3cb5a9d214cac8ce1e50950f8423bbc1d31c2e63d38e'
+sha256sums=('7b7735efd3b1e2323dc9fcef060b380d05f5f18bd0f247f5e9e74a628279de66'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2014-12-04 Thread Massimiliano Torromeo
Date: Thursday, December 4, 2014 @ 09:40:41
  Author: mtorromeo
Revision: 123433

upgpkg: python-requests 2.5.0-1

Updated to 2.5.0

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-12-04 08:30:12 UTC (rev 123432)
+++ PKGBUILD2014-12-04 08:40:41 UTC (rev 123433)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.4.3
+pkgver=2.5.0
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -13,7 +13,7 @@
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
 certs.patch)
-sha256sums=('53c68313c5c6149b1a899234c000296e60a8900682accf73d6f0c6d608afc6b1'
+sha256sums=('d2daef4919fc87262b8b3cb5a9d214cac8ce1e50950f8423bbc1d31c2e63d38e'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2014-10-06 Thread Massimiliano Torromeo
Date: Monday, October 6, 2014 @ 16:52:20
  Author: mtorromeo
Revision: 120269

upgpkg: python-requests 2.4.3-1

Updated to 2.4.3

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-10-06 14:07:42 UTC (rev 120268)
+++ PKGBUILD2014-10-06 14:52:20 UTC (rev 120269)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.4.1
+pkgver=2.4.3
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -13,7 +13,7 @@
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
 certs.patch)
-sha256sums=('35d890b0aaa6e09ec40d49361d823b998ced86cc7673a9ce70bbc4f986e13ad8'
+sha256sums=('53c68313c5c6149b1a899234c000296e60a8900682accf73d6f0c6d608afc6b1'
 'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
 
 prepare() {


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

2014-09-04 Thread Massimiliano Torromeo
Date: Thursday, September 4, 2014 @ 09:22:47
  Author: mtorromeo
Revision: 118233

upgpkg: python-requests 2.4.0-2

Remove certifi hard-dependency

Modified:
  python-requests/trunk/PKGBUILD
  python-requests/trunk/certs.patch

-+
 PKGBUILD|4 ++--
 certs.patch |   13 +
 2 files changed, 15 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-09-04 01:02:19 UTC (rev 118232)
+++ PKGBUILD2014-09-04 07:22:47 UTC (rev 118233)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
 pkgver=2.4.0
-pkgrel=1
+pkgrel=2
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
@@ -15,7 +15,7 @@
 certs.patch
 226b5c7b0aafc3cb744eb79a666d9a1bd0803a47.patch)
 sha256sums=('7007e03cbc73e357b5055c6ea0ad6e447e2afa00f1a1f843cd792a1ebaa3763e'
-'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7'
+'23bbd144905192edb23082c017292356eedbb3b41856c2a46505a2acb4ace831'
 '45cbe79fcf452eebb93444de7b78b35c679a77f268ea7286f5899bdb9ea7153a')
 
 prepare() {

Modified: certs.patch
===
--- certs.patch 2014-09-04 01:02:19 UTC (rev 118232)
+++ certs.patch 2014-09-04 07:22:47 UTC (rev 118233)
@@ -11,3 +11,16 @@
  
  if __name__ == '__main__':
  print(where())
+diff --git a/setup.py b/setup.py
+index e39d13b..3b86d3c 100755
+--- a/setup.py
 b/setup.py
+@@ -27,7 +27,7 @@ packages = [
+ 'requests.packages.urllib3.packages.ssl_match_hostname',
+ ]
+ 
+-requires = ['certifi']
++requires = []
+ 
+ with open('README.rst', 'r', 'utf-8') as f:
+ readme = f.read()



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

2014-05-22 Thread Massimiliano Torromeo
Date: Thursday, May 22, 2014 @ 10:35:11
  Author: mtorromeo
Revision: 111652

upgpkg: python-requests 2.3.0-1

Updated to 2.3.0

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-21 22:30:42 UTC (rev 111651)
+++ PKGBUILD2014-05-22 08:35:11 UTC (rev 111652)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.2.1
-pkgrel=2
+pkgver=2.3.0
+pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
@@ -56,5 +56,5 @@
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }
 
-sha256sums=('1266921f1bed5fbf364cd83cf239b6d7b3ea5c32bc93980d9ba12cdcfd02'
+sha256sums=('1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2014-03-17 Thread Massimiliano Torromeo
Date: Monday, March 17, 2014 @ 12:26:37
  Author: mtorromeo
Revision: 107447

upgpkg: python-requests 2.2.1-2

python 3.4 rebuild

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-17 11:25:28 UTC (rev 107446)
+++ PKGBUILD2014-03-17 11:26:37 UTC (rev 107447)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
 pkgver=2.2.1
-pkgrel=1
+pkgrel=2
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";



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

2014-01-28 Thread Massimiliano Torromeo
Date: Tuesday, January 28, 2014 @ 09:34:26
  Author: mtorromeo
Revision: 104907

upgpkg: python-requests 2.2.1-1

Updated to 2.2.1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-01-28 03:46:35 UTC (rev 104906)
+++ PKGBUILD2014-01-28 08:34:26 UTC (rev 104907)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.2.0
+pkgver=2.2.1
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -56,5 +56,5 @@
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }
 
-sha256sums=('1ff74f88bbfddf94f92aa20bd8473c7d46d3398c95b1842d81b2f3c475d5625d'
+sha256sums=('1266921f1bed5fbf364cd83cf239b6d7b3ea5c32bc93980d9ba12cdcfd02'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2014-01-13 Thread Massimiliano Torromeo
Date: Monday, January 13, 2014 @ 10:41:12
  Author: mtorromeo
Revision: 103881

upgpkg: python-requests 2.2.0-1

Updated to 2.2.0

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-01-13 09:10:15 UTC (rev 103880)
+++ PKGBUILD2014-01-13 09:41:12 UTC (rev 103881)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.1.0
+pkgver=2.2.0
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -56,5 +56,5 @@
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }
 
-sha256sums=('a57307f3a5f35ec9e1254aaf3e0484063ee3ee6b5f123fb35c5b2673492efa71'
+sha256sums=('1ff74f88bbfddf94f92aa20bd8473c7d46d3398c95b1842d81b2f3c475d5625d'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2014-01-10 Thread Balló György
Date: Saturday, January 11, 2014 @ 04:03:29
  Author: bgyorgy
Revision: 103741

Remove python2-simplejson from optdepends

No one need this, because python has an internal JSON parser.

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-01-11 02:53:12 UTC (rev 103740)
+++ PKGBUILD2014-01-11 03:03:29 UTC (rev 103741)
@@ -49,8 +49,7 @@
 package_python2-requests() {
 depends=(python2)
 optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
-'python2-grequests: asynchronous requests with gevent'
-'python2-simplejson')
+'python2-grequests: asynchronous requests with gevent')
 
 cd "$srcdir/$_libname-$pkgver"
 rm -rf build; ln -s ../buildpy2 build



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

2013-12-06 Thread Massimiliano Torromeo
Date: Friday, December 6, 2013 @ 09:26:14
  Author: mtorromeo
Revision: 102153

upgpkg: python-requests 2.1.0-1

Updated python-requests to 2.1.0

Modified:
  python-requests/trunk/PKGBUILD
Deleted:
  python-requests/trunk/ssl_wrap_socket.patch

---+
 PKGBUILD  |   13 +
 ssl_wrap_socket.patch |   25 -
 2 files changed, 5 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-12-06 07:51:15 UTC (rev 102152)
+++ PKGBUILD2013-12-06 08:26:14 UTC (rev 102153)
@@ -3,8 +3,8 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.0.1
-pkgrel=2
+pkgver=2.1.0
+pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
@@ -12,12 +12,10 @@
 license=('Apache')
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
-certs.patch
-ssl_wrap_socket.patch)
+certs.patch)
 
 prepare() {
 cd "$srcdir/$_libname-$pkgver"
-patch -p1 -i "$srcdir/ssl_wrap_socket.patch"
 patch -p0 -i "$srcdir/certs.patch"
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
@@ -59,6 +57,5 @@
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }
 
-sha256sums=('8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b'
-'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805'
-'fde8461e59d9753428c2c2a66cdbb575a57bf3997876541844a6aee93f7c1af4')
+sha256sums=('a57307f3a5f35ec9e1254aaf3e0484063ee3ee6b5f123fb35c5b2673492efa71'
+'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Deleted: ssl_wrap_socket.patch
===
--- ssl_wrap_socket.patch   2013-12-06 07:51:15 UTC (rev 102152)
+++ ssl_wrap_socket.patch   2013-12-06 08:26:14 UTC (rev 102153)
@@ -1,25 +0,0 @@
-From f1bde12e3c7ecea19ffe55a510def46db0868837 Mon Sep 17 00:00:00 2001
-From: Massimiliano Torromeo 
-Date: Mon, 4 Nov 2013 16:49:52 +0100
-Subject: [PATCH] Fix ssl_wrap_socket AttributeError on python2
-
-Importing requests on python2 raises an AttributeError in pyopenssl.py

- requests/packages/urllib3/connectionpool.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/requests/packages/urllib3/connectionpool.py 
b/requests/packages/urllib3/connectionpool.py
-index 1e58143..d347770 100644
 a/requests/packages/urllib3/connectionpool.py
-+++ b/requests/packages/urllib3/connectionpool.py
-@@ -42,6 +42,7 @@
- get_host,
- is_connection_dropped,
- Timeout,
-+ssl_wrap_socket,
- )
- 
- 
--- 
-1.8.4
-



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

2013-11-04 Thread Massimiliano Torromeo
Date: Monday, November 4, 2013 @ 16:53:29
  Author: mtorromeo
Revision: 100467

upgpkg: python-requests 2.0.1-2

Add fix for ssl_wrap_socket AttributeError (bug #37614)

Added:
  python-requests/trunk/ssl_wrap_socket.patch
Modified:
  python-requests/trunk/PKGBUILD

---+
 PKGBUILD  |9 ++---
 ssl_wrap_socket.patch |   25 +
 2 files changed, 31 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-11-04 15:37:14 UTC (rev 100466)
+++ PKGBUILD2013-11-04 15:53:29 UTC (rev 100467)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
 pkgver=2.0.1
-pkgrel=1
+pkgrel=2
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
@@ -12,10 +12,12 @@
 license=('Apache')
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
-certs.patch)
+certs.patch
+ssl_wrap_socket.patch)
 
 prepare() {
 cd "$srcdir/$_libname-$pkgver"
+patch -p1 -i "$srcdir/ssl_wrap_socket.patch"
 patch -p0 -i "$srcdir/certs.patch"
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
@@ -58,4 +60,5 @@
 }
 
 sha256sums=('8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b'
-'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')
+'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805'
+'fde8461e59d9753428c2c2a66cdbb575a57bf3997876541844a6aee93f7c1af4')

Added: ssl_wrap_socket.patch
===
--- ssl_wrap_socket.patch   (rev 0)
+++ ssl_wrap_socket.patch   2013-11-04 15:53:29 UTC (rev 100467)
@@ -0,0 +1,25 @@
+From f1bde12e3c7ecea19ffe55a510def46db0868837 Mon Sep 17 00:00:00 2001
+From: Massimiliano Torromeo 
+Date: Mon, 4 Nov 2013 16:49:52 +0100
+Subject: [PATCH] Fix ssl_wrap_socket AttributeError on python2
+
+Importing requests on python2 raises an AttributeError in pyopenssl.py
+---
+ requests/packages/urllib3/connectionpool.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/requests/packages/urllib3/connectionpool.py 
b/requests/packages/urllib3/connectionpool.py
+index 1e58143..d347770 100644
+--- a/requests/packages/urllib3/connectionpool.py
 b/requests/packages/urllib3/connectionpool.py
+@@ -42,6 +42,7 @@
+ get_host,
+ is_connection_dropped,
+ Timeout,
++ssl_wrap_socket,
+ )
+ 
+ 
+-- 
+1.8.4
+



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

2013-10-28 Thread Massimiliano Torromeo
Date: Monday, October 28, 2013 @ 15:16:23
  Author: mtorromeo
Revision: 99422

upgpkg: python-requests 2.0.1-1

Updated to 2.0.1

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-28 12:54:48 UTC (rev 99421)
+++ PKGBUILD2013-10-28 14:16:23 UTC (rev 99422)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=2.0.0
+pkgver=2.0.1
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -57,5 +57,5 @@
 python2 setup.py install --skip-build -O1 --root="$pkgdir"
 }
 
-sha256sums=('78536038f54cff6ade3be6863403146665b5a3923dd61108c98d8b64141f9d70'
+sha256sums=('8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2013-09-25 Thread Massimiliano Torromeo
Date: Wednesday, September 25, 2013 @ 15:01:37
  Author: mtorromeo
Revision: 97602

upgpkg: python-requests 2.0.0-1

Updated to v2.0.0

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |   15 +--
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-09-25 11:33:58 UTC (rev 97601)
+++ PKGBUILD2013-09-25 13:01:37 UTC (rev 97602)
@@ -3,23 +3,27 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=1.2.3
-pkgrel=3
+pkgver=2.0.0
+pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
 makedepends=('python-setuptools' 'python2-setuptools')
-license=('custom: ISC')
+license=('Apache')
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
 certs.patch)
 
-build() {
+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
 
@@ -51,8 +55,7 @@
 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'
+sha256sums=('78536038f54cff6ade3be6863403146665b5a3923dd61108c98d8b64141f9d70'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2013-08-19 Thread Massimiliano Torromeo
Date: Monday, August 19, 2013 @ 11:58:14
  Author: mtorromeo
Revision: 95999

Replaced distribute with setuptools

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-08-19 09:57:36 UTC (rev 95998)
+++ PKGBUILD2013-08-19 09:58:14 UTC (rev 95999)
@@ -4,11 +4,11 @@
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
 pkgver=1.2.3
-pkgrel=2
+pkgrel=3
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
-makedepends=('python-distribute' 'python2-distribute')
+makedepends=('python-setuptools' 'python2-setuptools')
 license=('custom: ISC')
 arch=('any')
 
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz



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

2013-06-12 Thread Massimiliano Torromeo
Date: Wednesday, June 12, 2013 @ 12:08:22
  Author: mtorromeo
Revision: 92698

upgpkg: python-requests 1.2.3-2

Updated optdepends to include python2-ndg-httpsclient for HTTPS requests with 
SNI support

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-06-12 10:02:33 UTC (rev 92697)
+++ PKGBUILD2013-06-12 10:08:22 UTC (rev 92698)
@@ -4,7 +4,7 @@
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
 pkgver=1.2.3
-pkgrel=1
+pkgrel=2
 _libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
@@ -36,7 +36,6 @@
 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"
@@ -45,7 +44,8 @@
 
 package_python2-requests() {
 depends=(python2)
-optdepends=('python2-grequests: asynchronous requests with gevent'
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent'
 'python2-simplejson')
 
 cd "$srcdir/$_libname-$pkgver"



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

2013-05-30 Thread Massimiliano Torromeo
Date: Thursday, May 30, 2013 @ 10:17:56
  Author: mtorromeo
Revision: 91940

upgpkg: python-requests 1.2.3-1

Updated to upstream release 1.2.3

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-30 07:36:37 UTC (rev 91939)
+++ PKGBUILD2013-05-30 08:17:56 UTC (rev 91940)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=1.2.2
+pkgver=1.2.3
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -54,5 +54,5 @@
 install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-sha256sums=('56929d7b5dec9b37a9a8520f15202bada0ad55d2888a7c3243b9b194f2ef603d'
+sha256sums=('156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2013-05-24 Thread Massimiliano Torromeo
Date: Friday, May 24, 2013 @ 12:36:52
  Author: mtorromeo
Revision: 91570

upgpkg: python-requests 1.2.2-1

Updated to 1.2.2

Modified:
  python-requests/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-24 09:42:52 UTC (rev 91569)
+++ PKGBUILD2013-05-24 10:36:52 UTC (rev 91570)
@@ -3,7 +3,7 @@
 
 pkgbase=python-requests
 pkgname=(python-requests python2-requests)
-pkgver=1.2.0
+pkgver=1.2.2
 pkgrel=1
 _libname=requests
 pkgdesc="Python HTTP for Humans."
@@ -54,5 +54,5 @@
 install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-sha256sums=('cfa615644ae38efe8423ce9edb23470a4615a9147fa3cea5026afb47c9bb3913'
+sha256sums=('56929d7b5dec9b37a9a8520f15202bada0ad55d2888a7c3243b9b194f2ef603d'
 '55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')



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

2013-04-03 Thread Massimiliano Torromeo
Date: Wednesday, April 3, 2013 @ 10:51:12
  Author: mtorromeo
Revision: 87555

upgpkg: python-requests 1.2.0-1

Updated requests to v1.2.0 and merged both python versions in one split-pkgbuild

Modified:
  python-requests/trunk/PKGBUILD
  python-requests/trunk/certs.patch

-+
 PKGBUILD|   46 +-
 certs.patch |   21 +
 2 files changed, 42 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-03 08:47:51 UTC (rev 87554)
+++ PKGBUILD2013-04-03 08:51:12 UTC (rev 87555)
@@ -1,15 +1,14 @@
 # $Id$
 # Maintainer: Massimiliano Torromeo 
 
-pkgname=python-requests
-pkgver=1.1.0
-pkgrel=2
-_libname=${pkgname/python-/}
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=1.2.0
+pkgrel=1
+_libname=requests
 pkgdesc="Python HTTP for Humans."
 url="http://python-requests.org";
-depends=('python')
-makedepends=('python-distribute')
-optdepends=('python-certifi: SSL support')
+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
@@ -20,7 +19,13 @@
 patch -p0 -i "$srcdir/certs.patch"
 sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
 rm -f requests/cacert.pem
-python setup.py build
+
+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() {
@@ -28,11 +33,26 @@
 test -f "$(python -m requests.certs)"
 }
 
-package() {
+package_python-requests() {
+depends=(python)
+
+
 cd "$srcdir/$_libname-$pkgver"
-python setup.py install --root="$pkgdir"
-   install -m0644 -D "LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+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"
 }
 
-sha256sums=('21a81ddf1a3c2f956524538966ae19c38cae251f5629821588cdc8246a1335f7'
-'97d5ee56c0e03d6c5c9791be3d9f4756252cfd74f1ab4bb6593fa2555fe3760e')
+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=('cfa615644ae38efe8423ce9edb23470a4615a9147fa3cea5026afb47c9bb3913'
+'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Modified: certs.patch
===
--- certs.patch 2013-04-03 08:47:51 UTC (rev 87554)
+++ certs.patch 2013-04-03 08:51:12 UTC (rev 87555)
@@ -1,20 +1,17 @@
 requests/certs.py.orig 2013-01-17 10:46:56.363521556 +0100
-+++ requests/certs.py  2013-01-17 10:52:17.288319297 +0100
-@@ -12,8 +12,6 @@
+--- 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
 -
- certifi = None
- try:
- import certifi
-@@ -25,7 +23,7 @@
- if certifi:
- return certifi.where()
-
+ 
+ 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())