[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to staging-any

Added:
  python-requests/repos/staging-any/
  python-requests/repos/staging-any/PKGBUILD
(from rev 399700, python-requests/trunk/PKGBUILD)
  python-requests/repos/staging-any/certs.patch
(from rev 399700, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   63 ++
 certs.patch |   14 
 2 files changed, 77 insertions(+)

Copied: python-requests/repos/staging-any/PKGBUILD (from rev 399700, 
python-requests/trunk/PKGBUILD)
===
--- staging-any/PKGBUILD(rev 0)
+++ staging-any/PKGBUILD2020-11-09 12:08:37 UTC (rev 399701)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.24.0
+pkgrel=2
+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' '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'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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() {
+  # Seems to be a problem about pytest-httpbin
+
+  cd requests-$pkgver
+  pytest tests --deselect 
tests/test_requests.py::TestRequests::test_https_warnings
+}
+
+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/staging-any/certs.patch (from rev 399700, 
python-requests/trunk/certs.patch)
===
--- staging-any/certs.patch (rev 0)
+++ staging-any/certs.patch 2020-11-09 12:08:37 UTC (rev 399701)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 389436, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 389436, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   63 ++
 certs.patch |   14 
 2 files changed, 77 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 389436, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-06-17 17:04:49 UTC (rev 389437)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.24.0
+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' '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'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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() {
+  # Seems to be a problem about pytest-httpbin
+
+  cd requests-$pkgver
+  pytest tests --deselect 
tests/test_requests.py::TestRequests::test_https_warnings
+}
+
+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/testing-any/certs.patch (from rev 389436, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2020-06-17 17:04:49 UTC (rev 389437)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

2020-02-20 Thread Felix Yan via arch-commits
Date: Thursday, February 20, 2020 @ 08:54:01
  Author: felixonmars
Revision: 375911

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 375910, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 375910, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   66 ++
 certs.patch |   14 
 2 files changed, 80 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 375910, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-02-20 08:54:01 UTC (rev 375911)
@@ -0,0 +1,66 @@
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.23.0
+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' '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')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  patch -p1 -i ../requests-pytest-5.patch
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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() {
+  # Seems to be a problem about pytest-httpbin
+
+  cd requests-$pkgver
+  pytest tests --deselect 
tests/test_requests.py::TestRequests::test_https_warnings
+}
+
+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/testing-any/certs.patch (from rev 375910, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2020-02-20 08:54:01 UTC (rev 375911)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 342798, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 342798, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   65 ++
 certs.patch |   14 
 2 files changed, 79 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 342798, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2018-12-30 09:44:33 UTC (rev 342799)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.21.0
+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=('934c329e6631ec6089577c49651b73265f0c3f0829b9151e1463dea905f35820a03ec3b0ee6a2ab2292d213b715f0b2348110392d60f55ea1cbe4b24fca4f890'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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/testing-any/certs.patch (from rev 342798, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2018-12-30 09:44:33 UTC (rev 342799)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

2018-10-17 Thread Felix Yan via arch-commits
Date: Wednesday, October 17, 2018 @ 07:31:05
  Author: felixonmars
Revision: 336794

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 336793, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 336793, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   67 ++
 certs.patch |   14 
 2 files changed, 81 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 336793, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2018-10-17 07:31:05 UTC (rev 336794)
@@ -0,0 +1,67 @@
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.19.1
+pkgrel=3
+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=('00adbbe63c88117fce25e4e2de4ddfb62f87276d627f97aaf8bc4afbf59a921cac57b87f51a0d99167b42d311fe8ca9723b2c5d3a9e04fb0ee318bf90fd9d4ed'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -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 {} +
+}
+
+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/testing-any/certs.patch (from rev 336793, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2018-10-17 07:31:05 UTC (rev 336794)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to staging-any

Added:
  python-requests/repos/staging-any/
  python-requests/repos/staging-any/PKGBUILD
(from rev 327836, python-requests/trunk/PKGBUILD)
  python-requests/repos/staging-any/certs.patch
(from rev 327836, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   66 ++
 certs.patch |   14 
 2 files changed, 80 insertions(+)

Copied: python-requests/repos/staging-any/PKGBUILD (from rev 327836, 
python-requests/trunk/PKGBUILD)
===
--- staging-any/PKGBUILD(rev 0)
+++ staging-any/PKGBUILD2018-06-30 09:43:41 UTC (rev 327837)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.19.1
+pkgrel=2
+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=('00adbbe63c88117fce25e4e2de4ddfb62f87276d627f97aaf8bc4afbf59a921cac57b87f51a0d99167b42d311fe8ca9723b2c5d3a9e04fb0ee318bf90fd9d4ed'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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/staging-any/certs.patch (from rev 327836, 
python-requests/trunk/certs.patch)
===
--- staging-any/certs.patch (rev 0)
+++ staging-any/certs.patch 2018-06-30 09:43:41 UTC (rev 327837)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 326854, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 326854, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   66 ++
 certs.patch |   14 
 2 files changed, 80 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 326854, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2018-06-12 17:59:32 UTC (rev 326855)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.19.0
+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=('832ce7e3a67863ed2d241617e9ba983db470f0dbccd78ecb96b5bec2e1d76aa895553d4922bc4c30836e72401213c16ba0098f73dc4e2bc43a8fc36cd4c0ed00'
+
'424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+  cd "$srcdir"/requests-$pkgver
+  sed -e '/certifi/d' \
+  -e "s/,<.*'/'/" \
+  -i 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/testing-any/certs.patch (from rev 326854, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2018-06-12 17:59:32 UTC (rev 326855)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

2017-07-22 Thread Felix Yan
Date: Saturday, July 22, 2017 @ 18:43:11
  Author: felixonmars
Revision: 301166

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 301165, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 301165, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   66 ++
 certs.patch |   14 
 2 files changed, 80 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 301165, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-07-22 18:43:11 UTC (rev 301166)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.18.1
+pkgrel=2
+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 -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"
+  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/testing-any/certs.patch (from rev 301165, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2017-07-22 18:43:11 UTC (rev 301166)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

2017-06-05 Thread Felix Yan
Date: Tuesday, June 6, 2017 @ 04:12:08
  Author: felixonmars
Revision: 297831

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 297830, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 297830, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   64 ++
 certs.patch |   14 
 2 files changed, 78 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 297830, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-06-06 04:12:08 UTC (rev 297831)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+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/testing-any/certs.patch (from rev 297830, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2017-06-06 04:12:08 UTC (rev 297831)
@@ -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())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 295858, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 295858, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   74 ++
 certs.patch |   13 ++
 2 files changed, 87 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 295858, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-05-12 05:14:56 UTC (rev 295859)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.14.2
+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-pysocks' 
'python2-pysocks' 'git')
+checkdepends=('python-pytest-httpbin' 'python2-pytest-httpbin' 
'python-pytest-mock'
+  'python2-pytest-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/kennethreitz/requests/archive/v$pkgver.tar.gz";
+certs.patch)
+sha512sums=('a9f2b612bbfc4ce27c9a96bfac052f01329f2adbde7f188ee5507419f73252f282ebe68616df93a8c32680998c85ee7adf683893801df24439de8f0ed02af0a2'
+
'b7b2e6aefb8e1ebfa24816bf1a48e45ef27244e23d75e2ac17fc6e8f8fb33846f55c68eca1a03077642dd1fae43b6dfed54e9f5aff382ea4fb4a70287c2fa9ed')
+
+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 {} +
+}
+
+build() {
+  cd "$srcdir"/requests-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/requests-$pkgver-py2
+  python2 setup.py build
+}
+
+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"
+}
+
+package_python-requests() {
+  depends=('python-urllib3' 'python-chardet')
+  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')
+  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/testing-any/certs.patch (from rev 295858, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2017-05-12 05:14:56 UTC (rev 295859)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to staging-any

Added:
  python-requests/repos/staging-any/
  python-requests/repos/staging-any/PKGBUILD
(from rev 284713, python-requests/trunk/PKGBUILD)
  python-requests/repos/staging-any/certs.patch
(from rev 284713, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   74 ++
 certs.patch |   13 ++
 2 files changed, 87 insertions(+)

Copied: python-requests/repos/staging-any/PKGBUILD (from rev 284713, 
python-requests/trunk/PKGBUILD)
===
--- staging-any/PKGBUILD(rev 0)
+++ staging-any/PKGBUILD2016-12-25 02:36:40 UTC (rev 284714)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.12.4
+pkgrel=2
+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-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'
+'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+  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
+
+  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 {} +
+}
+
+build() {
+  cd "$srcdir"/requests
+  python setup.py build
+
+  cd "$srcdir"/requests-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/requests
+  test -f "$(python -m requests.certs)"
+  py.test tests
+
+  cd "$srcdir"/requests-py2
+  test -f "$(python2 -m requests.certs)"
+  py.test2 tests || warning "Tests failed"
+}
+
+package_python-requests() {
+  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
+}
+
+package_python2-requests() {
+  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"
+}

Copied: python-requests/repos/staging-any/certs.patch (from rev 284713, 
python-requests/trunk/certs.patch)
===
--- staging-any/certs.patch (rev 0)
+++ staging-any/certs.patch 2016-12-25 02:36:40 UTC (rev 284714)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 282404, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 282404, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   74 ++
 certs.patch |   13 ++
 2 files changed, 87 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 282404, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2016-12-01 06:35:25 UTC (rev 282405)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.12.2
+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-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'
+'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+  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
+
+  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 {} +
+}
+
+build() {
+  cd "$srcdir"/requests
+  python setup.py build
+
+  cd "$srcdir"/requests-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/requests
+  test -f "$(python -m requests.certs)"
+  py.test tests
+
+  cd "$srcdir"/requests-py2
+  test -f "$(python2 -m requests.certs)"
+  py.test2 tests || warning "Tests failed"
+}
+
+package_python-requests() {
+  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
+}
+
+package_python2-requests() {
+  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"
+}

Copied: python-requests/repos/testing-any/certs.patch (from rev 282404, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2016-12-01 06:35:25 UTC (rev 282405)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

2016-11-17 Thread Felix Yan
Date: Friday, November 18, 2016 @ 07:49:02
  Author: felixonmars
Revision: 281042

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 281041, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 281041, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   74 ++
 certs.patch |   13 ++
 2 files changed, 87 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 281041, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2016-11-18 07:49:02 UTC (rev 281042)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.12.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-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'
+'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+  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
+
+  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 {} +
+}
+
+build() {
+  cd "$srcdir"/requests
+  python setup.py build
+
+  cd "$srcdir"/requests-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/requests
+  test -f "$(python -m requests.certs)"
+  py.test tests
+
+  cd "$srcdir"/requests-py2
+  test -f "$(python2 -m requests.certs)"
+  py.test2 tests || warning "Tests failed"
+}
+
+package_python-requests() {
+  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
+}
+
+package_python2-requests() {
+  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"
+}

Copied: python-requests/repos/testing-any/certs.patch (from rev 281041, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2016-11-18 07:49:02 UTC (rev 281042)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 274084, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 274084, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   74 ++
 certs.patch |   13 ++
 2 files changed, 87 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 274084, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2016-08-20 17:02:51 UTC (rev 274085)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.11.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-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'
+'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+  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
+
+  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 {} +
+}
+
+build() {
+  cd "$srcdir"/requests
+  python setup.py build
+
+  cd "$srcdir"/requests-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/requests
+  test -f "$(python -m requests.certs)"
+  py.test tests
+
+  cd "$srcdir"/requests-py2
+  test -f "$(python2 -m requests.certs)"
+  py.test2 tests || warning "Tests failed"
+}
+
+package_python-requests() {
+  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
+}
+
+package_python2-requests() {
+  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"
+}

Copied: python-requests/repos/testing-any/certs.patch (from rev 274084, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2016-08-20 17:02:51 UTC (rev 274085)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

2015-10-06 Thread Felix Yan
Date: Tuesday, October 6, 2015 @ 18:14:03
  Author: fyan
Revision: 248426

archrelease: copy trunk to testing-any

Added:
  python-requests/repos/testing-any/
  python-requests/repos/testing-any/PKGBUILD
(from rev 248425, python-requests/trunk/PKGBUILD)
  python-requests/repos/testing-any/certs.patch
(from rev 248425, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   71 ++
 certs.patch |   13 ++
 2 files changed, 84 insertions(+)

Copied: python-requests/repos/testing-any/PKGBUILD (from rev 248425, 
python-requests/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2015-10-06 16:14:03 UTC (rev 248426)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+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' '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=('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 {} +
+}
+
+build() {
+cd "$srcdir"/requests-$pkgver
+python setup.py build
+
+cd "$srcdir"/requests-$pkgver-py2
+python2 setup.py build
+}
+
+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-urllib3' 'python-chardet')
+
+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')
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent')
+
+cd "$srcdir"/requests-$pkgver-py2
+python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Copied: python-requests/repos/testing-any/certs.patch (from rev 248425, 
python-requests/trunk/certs.patch)
===
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2015-10-06 16:14:03 UTC (rev 248426)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

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

archrelease: copy trunk to staging-any

Added:
  python-requests/repos/staging-any/
  python-requests/repos/staging-any/PKGBUILD
(from rev 246615, python-requests/trunk/PKGBUILD)
  python-requests/repos/staging-any/certs.patch
(from rev 246615, python-requests/trunk/certs.patch)

-+
 PKGBUILD|   58 ++
 certs.patch |   13 +
 2 files changed, 71 insertions(+)

Copied: python-requests/repos/staging-any/PKGBUILD (from rev 246615, 
python-requests/trunk/PKGBUILD)
===
--- staging-any/PKGBUILD(rev 0)
+++ staging-any/PKGBUILD2015-09-19 12:55:34 UTC (rev 246616)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=('python-requests' 'python2-requests')
+pkgver=2.7.0
+pkgrel=2
+pkgdesc="Python HTTP for Humans"
+arch=('any')
+url="http://python-requests.org";
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(http://pypi.python.org/packages/source/r/requests/requests-$pkgver.tar.gz
+certs.patch)
+sha256sums=('398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d'
+'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
+
+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
+test -f "$(python -m requests.certs)"
+}
+
+package_python-requests() {
+depends=('python')
+
+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')
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent')
+
+cd "$srcdir"/requests-$pkgver-py2
+python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Copied: python-requests/repos/staging-any/certs.patch (from rev 246615, 
python-requests/trunk/certs.patch)
===
--- staging-any/certs.patch (rev 0)
+++ staging-any/certs.patch 2015-09-19 12:55:34 UTC (rev 246616)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

2015-02-06 Thread Andreas Radke
Date: Friday, February 6, 2015 @ 22:28:14
  Author: andyrtr
Revision: 230915

archrelease: copy trunk to extra-any

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

-+
 PKGBUILD|   59 ++
 certs.patch |   13 
 2 files changed, 72 insertions(+)

Copied: python-requests/repos/extra-any/PKGBUILD (from rev 230914, 
python-requests/trunk/PKGBUILD)
===
--- extra-any/PKGBUILD  (rev 0)
+++ extra-any/PKGBUILD  2015-02-06 21:28:14 UTC (rev 230915)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=2.5.1
+pkgrel=1
+_libname=requests
+pkgdesc="Python HTTP for Humans."
+url="http://python-requests.org";
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('Apache')
+arch=('any')
+source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
+certs.patch)
+sha256sums=('7b7735efd3b1e2323dc9fcef060b380d05f5f18bd0f247f5e9e74a628279de66'
+'e35e779d8640f35ea2ea51112f967d927b44d59483af4cd2c0945c84e79bb7c7')
+
+prepare() {
+cd "$srcdir"/$_libname-$pkgver
+patch -p1 -i "$srcdir"/certs.patch
+sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+rm -f requests/cacert.pem
+}
+
+build() {
+cd "$srcdir"/$_libname-$pkgver
+
+rm -rf ../buildpy3; mkdir ../buildpy3
+python setup.py build -b ../buildpy3
+
+rm -rf ../buildpy2; mkdir ../buildpy2
+python2 setup.py build -b ../buildpy2
+find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
+}
+
+check() {
+cd "$srcdir"/$_libname-$pkgver
+test -f "$(python -m requests.certs)"
+}
+
+package_python-requests() {
+depends=(python)
+
+cd "$srcdir"/$_libname-$pkgver
+rm -rf build; ln -s ../buildpy3 build
+python setup.py install --skip-build -O1 --root="$pkgdir"
+install -m0644 -D "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-requests() {
+depends=(python2)
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent')
+
+cd "$srcdir"/$_libname-$pkgver
+rm -rf build; ln -s ../buildpy2 build
+python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}

Copied: python-requests/repos/extra-any/certs.patch (from rev 230914, 
python-requests/trunk/certs.patch)
===
--- extra-any/certs.patch   (rev 0)
+++ extra-any/certs.patch   2015-02-06 21:28:14 UTC (rev 230915)
@@ -0,0 +1,13 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index 07e6475..33db011 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"
+ 
+ if __name__ == '__main__':
+ print(where())


[arch-commits] Commit in python-requests/repos (3 files)

2014-03-17 Thread Massimiliano Torromeo
Date: Monday, March 17, 2014 @ 12:28:03
  Author: mtorromeo
Revision: 107448

archrelease: copy trunk to community-staging-any

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

-+
 PKGBUILD|   60 ++
 certs.patch |   17 
 2 files changed, 77 insertions(+)

Copied: python-requests/repos/community-staging-any/PKGBUILD (from rev 107447, 
python-requests/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2014-03-17 11:28:03 UTC (rev 107448)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=2.2.1
+pkgrel=2
+_libname=requests
+pkgdesc="Python HTTP for Humans."
+url="http://python-requests.org";
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('Apache')
+arch=('any')
+source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
+certs.patch)
+
+prepare() {
+cd "$srcdir/$_libname-$pkgver"
+patch -p0 -i "$srcdir/certs.patch"
+sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+rm -f requests/cacert.pem
+}
+
+build() {
+cd "$srcdir/$_libname-$pkgver"
+
+rm -rf ../buildpy3; mkdir ../buildpy3
+python setup.py build -b ../buildpy3
+
+rm -rf ../buildpy2; mkdir ../buildpy2
+python2 setup.py build -b ../buildpy2
+find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
+}
+
+check() {
+cd "$srcdir/$_libname-$pkgver"
+test -f "$(python -m requests.certs)"
+}
+
+package_python-requests() {
+depends=(python)
+
+cd "$srcdir/$_libname-$pkgver"
+rm -rf build; ln -s ../buildpy3 build
+python setup.py install --skip-build -O1 --root="$pkgdir"
+install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-requests() {
+depends=(python2)
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent')
+
+cd "$srcdir/$_libname-$pkgver"
+rm -rf build; ln -s ../buildpy2 build
+python2 setup.py install --skip-build -O1 --root="$pkgdir"
+}
+
+sha256sums=('1266921f1bed5fbf364cd83cf239b6d7b3ea5c32bc93980d9ba12cdcfd02'
+'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Copied: python-requests/repos/community-staging-any/certs.patch (from rev 
107447, python-requests/trunk/certs.patch)
===
--- community-staging-any/certs.patch   (rev 0)
+++ community-staging-any/certs.patch   2014-03-17 11:28:03 UTC (rev 107448)
@@ -0,0 +1,17 @@
+--- requests/certs.py.orig 2013-04-03 10:25:52.618680901 +0200
 requests/certs.py  2013-04-03 10:26:29.291120949 +0200
+@@ -12,13 +12,11 @@
+ packaged CA bundle.
+ """
+ 
+-import os.path
+-
+ 
+ def where():
+ """Return the preferred certificate bundle."""
+ # vendored bundle inside Requests
+-return os.path.join(os.path.dirname(__file__), 'cacert.pem')
++return "/etc/ssl/certs/ca-certificates.crt"
+ 
+ if __name__ == '__main__':
+ print(where())



[arch-commits] Commit in python-requests/repos (3 files)

2013-08-19 Thread Massimiliano Torromeo
Date: Monday, August 19, 2013 @ 12:00:09
  Author: mtorromeo
Revision: 96002

archrelease: copy trunk to community-testing-any

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

-+
 PKGBUILD|   58 ++
 certs.patch |   17 +
 2 files changed, 75 insertions(+)

Copied: python-requests/repos/community-testing-any/PKGBUILD (from rev 96000, 
python-requests/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2013-08-19 10:00:09 UTC (rev 96002)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo 
+
+pkgbase=python-requests
+pkgname=(python-requests python2-requests)
+pkgver=1.2.3
+pkgrel=3
+_libname=requests
+pkgdesc="Python HTTP for Humans."
+url="http://python-requests.org";
+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
+certs.patch)
+
+build() {
+cd "$srcdir/$_libname-$pkgver"
+patch -p0 -i "$srcdir/certs.patch"
+sed -r 's#(\W|^)requests/cacert\.pem(\W|$)##' -i MANIFEST.in
+rm -f requests/cacert.pem
+
+rm -rf ../buildpy3; mkdir ../buildpy3
+python setup.py build -b ../buildpy3
+
+rm -rf ../buildpy2; mkdir ../buildpy2
+python2 setup.py build -b ../buildpy2
+find ../buildpy2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' 
-i {} +
+}
+
+check() {
+cd "$srcdir/$_libname-$pkgver"
+test -f "$(python -m requests.certs)"
+}
+
+package_python-requests() {
+depends=(python)
+
+cd "$srcdir/$_libname-$pkgver"
+rm -rf build; ln -s ../buildpy3 build
+python setup.py install --skip-build -O1 --root="$pkgdir"
+install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-requests() {
+depends=(python2)
+optdepends=('python2-ndg-httpsclient: HTTPS requests with SNI support'
+'python2-grequests: asynchronous requests with gevent'
+'python2-simplejson')
+
+cd "$srcdir/$_libname-$pkgver"
+rm -rf build; ln -s ../buildpy2 build
+python2 setup.py install --skip-build -O1 --root="$pkgdir"
+install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha256sums=('156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1'
+'55f8ae9c2a81c65fb2e8d94b23cff58524ddfbb31ea5180219e6a79db2975805')

Copied: python-requests/repos/community-testing-any/certs.patch (from rev 
96000, python-requests/trunk/certs.patch)
===
--- community-testing-any/certs.patch   (rev 0)
+++ community-testing-any/certs.patch   2013-08-19 10:00:09 UTC (rev 96002)
@@ -0,0 +1,17 @@
+--- requests/certs.py.orig 2013-04-03 10:25:52.618680901 +0200
 requests/certs.py  2013-04-03 10:26:29.291120949 +0200
+@@ -12,13 +12,11 @@
+ packaged CA bundle.
+ """
+ 
+-import os.path
+-
+ 
+ def where():
+ """Return the preferred certificate bundle."""
+ # vendored bundle inside Requests
+-return os.path.join(os.path.dirname(__file__), 'cacert.pem')
++return "/etc/ssl/certs/ca-certificates.crt"
+ 
+ if __name__ == '__main__':
+ print(where())