Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-requests


Commits:
acbc9ae8 by Daniel M. Capella at 2023-10-17T01:15:20-04:00
upgpkg: 2.31.0-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,26 @@
+pkgbase = python-requests
+       pkgdesc = Python HTTP for Humans
+       pkgver = 2.31.0
+       pkgrel = 1
+       url = https://requests.readthedocs.io/
+       arch = any
+       license = Apache
+       checkdepends = python-pysocks
+       checkdepends = python-pytest-httpbin
+       checkdepends = python-pytest-mock
+       checkdepends = python-trustme
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python-charset-normalizer
+       depends = python-idna
+       depends = python-urllib3
+       optdepends = python-chardet: alternative character encoding library
+       optdepends = python-pysocks: SOCKS proxy support
+       source = 
https://github.com/psf/requests/archive/v2.31.0/python-requests-2.31.0.tar.gz
+       source = certs.patch
+       sha512sums = 
43f536bdb2360fcceb24ef98e995ffa66cdefc2c502629f17a5722445bfa9ad8489201958c846c2aaef37e427f95a4d56e321a91095c69754680abfd83b39150
+       sha512sums = 
424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3
+
+pkgname = python-requests


=====================================
PKGBUILD
=====================================
@@ -2,37 +2,35 @@
 # Contributor: Massimiliano Torromeo <[email protected]>
 
 pkgname=python-requests
-pkgver=2.28.2
-pkgrel=4
+pkgver=2.31.0
+pkgrel=1
 pkgdesc="Python HTTP for Humans"
 arch=('any')
 url="https://requests.readthedocs.io/";
 license=('Apache')
-depends=('python-urllib3' 'python-chardet' 'python-idna')
-makedepends=(
-  python-build
-  python-installer
-  python-wheel
-  python-setuptools
-  python-chardet
-  python-urllib3
-  python-idna
+depends=('python-charset-normalizer' 'python-idna' 'python-urllib3')
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(
+  'python-pysocks'
+  'python-pytest-httpbin'
+  'python-pytest-mock'
+  'python-trustme'
 )
-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=('88c5a92ea51cd18e7edd49a6259d7b56bc0c17f86067f796b5f668ed35202b8bc1395e4811ee2089350e08893dcd304c9801dbf087abfaff1d14859e31bce8ac'
+optdepends=(
+  'python-chardet: alternative character encoding library'
+  'python-pysocks: SOCKS proxy support'
+)
+source=(
+  "https://github.com/psf/requests/archive/v$pkgver/$pkgname-$pkgver.tar.gz";
+  certs.patch
+)
+sha512sums=('43f536bdb2360fcceb24ef98e995ffa66cdefc2c502629f17a5722445bfa9ad8489201958c846c2aaef37e427f95a4d56e321a91095c69754680abfd83b39150'
             
'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
+  sed -i '/certifi/d' setup.py
+  patch -p1 -i ../certs.patch
 }
 
 build() {
@@ -41,12 +39,8 @@ 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
+  pytest tests
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-requests/-/commit/acbc9ae86e5bcbb03a9a333f94b53c3cdf812a07

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-requests/-/commit/acbc9ae86e5bcbb03a9a333f94b53c3cdf812a07
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to