[arch-commits] Commit in python-requests/repos/extra-any (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Feb 16 23:26:10 UTC 2022
Date: Wednesday, February 16, 2022 @ 23:26:10
Author: felixonmars
Revision: 437541
archrelease: copy trunk to extra-any
Added:
python-requests/repos/extra-any/PKGBUILD
(from rev 437540, python-requests/trunk/PKGBUILD)
python-requests/repos/extra-any/certs.patch
(from rev 437540, python-requests/trunk/certs.patch)
Deleted:
python-requests/repos/extra-any/PKGBUILD
python-requests/repos/extra-any/certs.patch
-------------+
PKGBUILD | 94 +++++++++++++++++++++++++++++-----------------------------
certs.patch | 28 ++++++++---------
2 files changed, 61 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-16 23:26:00 UTC (rev 437540)
+++ PKGBUILD 2022-02-16 23:26:10 UTC (rev 437541)
@@ -1,47 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname=python-requests
-pkgver=2.27.0
-pkgrel=1
-pkgdesc="Python HTTP for Humans"
-arch=('any')
-url="http://python-requests.org"
-license=('Apache')
-depends=('python-urllib3' 'python-chardet' 'python-idna')
-makedepends=('python-setuptools' 'python-chardet' 'python-urllib3' 'python-idna')
-checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 'python-trustme')
-optdepends=('python-pysocks: SOCKS proxy support')
-source=("https://github.com/psf/requests/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
- certs.patch)
-sha512sums=('84c24d31a9aa9af995c24d40ef1c8c85c8c42bc52b3f59ae91206aa6598ca6d468ae3a65929926afb88ea3bf02d0d979907fff61e79f451ed6971c32d05ab6e3'
- '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
-
-prepare() {
- cd requests-$pkgver
- # Stay with chardet for now: https://github.com/psf/requests/issues/5871
- sed -e '/certifi/d' \
- -e "s/,<.*'/'/" \
- -e '/charset_normalizer/d' \
- -i setup.py
- patch -p1 -i "$srcdir"/certs.patch
-}
-
-build() {
- cd requests-$pkgver
- python setup.py build
-}
-
-check() {
- # Seems to be a problem about pytest-httpbin:
- # pytest-httpbin server hit an exception serving request: [SSL: HTTP_REQUEST] http request (_ssl.c:1129)
- # pytest-httpbin server hit an exception serving request: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1129)
-
- cd requests-$pkgver
- pytest tests --deselect tests/test_requests.py::TestRequests::test_pyopenssl_redirect
-}
-
-package() {
- cd requests-$pkgver
- python setup.py install --skip-build -O1 --root="$pkgdir"
-}
Copied: python-requests/repos/extra-any/PKGBUILD (from rev 437540, python-requests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-16 23:26:10 UTC (rev 437541)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-requests
+pkgver=2.27.1
+pkgrel=1
+pkgdesc="Python HTTP for Humans"
+arch=('any')
+url="http://python-requests.org"
+license=('Apache')
+depends=('python-urllib3' 'python-chardet' 'python-idna')
+makedepends=('python-setuptools' 'python-chardet' 'python-urllib3' 'python-idna')
+checkdepends=('python-pytest-httpbin' 'python-pytest-mock' 'python-pysocks' 'python-trustme')
+optdepends=('python-pysocks: SOCKS proxy support')
+source=("https://github.com/psf/requests/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+ certs.patch)
+sha512sums=('191f8e0d566d541ab4e0c17bc9a637eb79e841605f6bbb9a0e559bd7bf0f00a71be99e21fa5b5431b9d49cb4a64debd0d7083658f98b723cf976833bb685cb9a'
+ '424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3')
+
+prepare() {
+ cd requests-$pkgver
+ # Stay with chardet for now: https://github.com/psf/requests/issues/5871
+ sed -e '/certifi/d' \
+ -e "s/,<.*'/'/" \
+ -e '/charset_normalizer/d' \
+ -i setup.py
+ patch -p1 -i "$srcdir"/certs.patch
+}
+
+build() {
+ cd requests-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Seems to be a problem about pytest-httpbin:
+ # pytest-httpbin server hit an exception serving request: [SSL: HTTP_REQUEST] http request (_ssl.c:1129)
+ # pytest-httpbin server hit an exception serving request: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1129)
+
+ cd requests-$pkgver
+ pytest tests --deselect tests/test_requests.py::TestRequests::test_pyopenssl_redirect
+}
+
+package() {
+ cd requests-$pkgver
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+}
Deleted: certs.patch
===================================================================
--- certs.patch 2022-02-16 23:26:00 UTC (rev 437540)
+++ certs.patch 2022-02-16 23:26:10 UTC (rev 437541)
@@ -1,14 +0,0 @@
-diff --git a/requests/certs.py b/requests/certs.py
-index d1a378d7..4e0bffd4 100644
---- a/requests/certs.py
-+++ b/requests/certs.py
-@@ -12,7 +12,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
- environment, you can change the definition of where() to return a separately
- packaged CA bundle.
- """
--from certifi import where
-+def where():
-+ return "/etc/ssl/certs/ca-certificates.crt"
-
- if __name__ == '__main__':
- print(where())
Copied: python-requests/repos/extra-any/certs.patch (from rev 437540, python-requests/trunk/certs.patch)
===================================================================
--- certs.patch (rev 0)
+++ certs.patch 2022-02-16 23:26:10 UTC (rev 437541)
@@ -0,0 +1,14 @@
+diff --git a/requests/certs.py b/requests/certs.py
+index d1a378d7..4e0bffd4 100644
+--- a/requests/certs.py
++++ b/requests/certs.py
+@@ -12,7 +12,8 @@ If you are packaging Requests, e.g., for a Linux distribution or a managed
+ environment, you can change the definition of where() to return a separately
+ packaged CA bundle.
+ """
+-from certifi import where
++def where():
++ return "/etc/ssl/certs/ca-certificates.crt"
+
+ if __name__ == '__main__':
+ print(where())
More information about the arch-commits
mailing list