* update python-urllib3 to 1.26.20-1

This commit is contained in:
Alexander Baldeck 2024-09-24 13:44:28 +02:00
parent 8f9f2de99c
commit f3f03f7416
3 changed files with 47 additions and 40 deletions

View File

@ -0,0 +1,36 @@
pkgbase = python-urllib3
pkgdesc = HTTP library with thread-safe connection pooling and file post support
pkgver = 1.26.20
pkgrel = 1
url = https://github.com/urllib3/urllib3
arch = any
license = MIT
checkdepends = python-brotli
checkdepends = python-certifi
checkdepends = python-cryptography
checkdepends = python-dateutil
checkdepends = python-flaky
checkdepends = python-gcp-devrel-py-tools
checkdepends = python-idna
checkdepends = python-pyopenssl
checkdepends = python-pysocks
checkdepends = python-pytest
checkdepends = python-pytest-freezegun
checkdepends = python-pytest-timeout
checkdepends = python-tornado
checkdepends = python-trustme
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
optdepends = python-brotli: Brotli support
optdepends = python-certifi: security support
optdepends = python-cryptography: security support
optdepends = python-idna: security support
optdepends = python-pyopenssl: security support
optdepends = python-pysocks: SOCKS support
source = https://github.com/urllib3/urllib3/archive/1.26.20/python-urllib3-1.26.20.tar.gz
sha512sums = 63c4263c5e61adf28344e79b6c864c70e555b715a93e735aca5b6e169f041f3e4518961993c86c83dd13bcb149f7dd77b6e90140cf4aa2310c14fcaa0a52179b
pkgname = python-urllib3

View File

@ -0,0 +1,4 @@
[python-urllib3]
source = "git"
git = "https://github.com/urllib3/urllib3.git"
prefix = "v"

View File

@ -6,8 +6,8 @@
_name=urllib3
pkgname=python-urllib3
pkgver=1.26.18
pkgrel=3
pkgver=1.26.20
pkgrel=1
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
arch=(any)
url="https://github.com/urllib3/urllib3"
@ -29,7 +29,7 @@ checkdepends=(
'python-idna'
'python-pyopenssl'
'python-pysocks'
'python-pytest7'
'python-pytest'
'python-pytest-freezegun'
'python-pytest-timeout'
'python-tornado'
@ -43,8 +43,8 @@ optdepends=(
'python-pyopenssl: security support'
'python-pysocks: SOCKS support'
)
source=("https://github.com/urllib3/urllib3/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('62c0af4b11e797a85420ef3f0888f2e608334329eddd88b9fe563b5437189cbea8dbbcd53f999557d9828fcf4bf03b8ca9f6e3d401533bc4ae8ff96e3ece1557')
source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('63c4263c5e61adf28344e79b6c864c70e555b715a93e735aca5b6e169f041f3e4518961993c86c83dd13bcb149f7dd77b6e90140cf4aa2310c14fcaa0a52179b')
prepare() {
# remove python-mock requirement
@ -59,41 +59,8 @@ build() {
check() {
local pytest_options=(
-vv
# TODO: report upstream
--deselect test/test_ssltransport.py::SingleTLSLayerTestCase::test_ssl_object_attributes
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_ssl_read_timeout
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_read_timeout
# Tests hang and need an adjusted backported patch for pytest8
# https://github.com/urllib3/urllib3/commit/8c2088622059860e5411c8e37b26e402a5dda0bb
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::*
--deselect test/with_dummyserver/test_socketlevel.py::TestClients::*
--deselect test/contrib/test_pyopenssl.py::TestClientCerts::test_client_certs_two_files
--deselect test/contrib/test_pyopenssl.py::TestClientCerts::test_client_certs_one_file
--deselect test/contrib/test_pyopenssl.py::TestClientCerts::test_missing_client_certs_raises_error
--deselect test/contrib/test_pyopenssl.py::TestClientCerts::test_client_cert_with_string_password
--deselect test/contrib/test_pyopenssl.py::TestClientCerts::test_client_cert_with_bytes_password
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failure_midway_through_conn
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_retry_ssl_error
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_requesting_large_resources_via_ssl
--deselect test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_scheme_host_case_insensitive
--deselect test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_certs_two_files
--deselect test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_certs_one_file
--deselect test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_missing_client_certs_raises_error
--deselect test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_string_password
--deselect test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_bytes_password
--deselect test/with_dummyserver/test_socketlevel.py::TestProxyManager::test_connect_reconn
--deselect test/with_dummyserver/test_socketlevel.py::TestProxyManager::test_connect_ipv6_addr
--deselect test/with_dummyserver/test_proxy_poolmanager.py::TestIPv6HTTPProxyManager::test_basic_ipv6_proxy
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_failure_midway_through_conn
--deselect test/with_dummyserver/test_socketlevel.py::TestProxyManager::test_https_proxymanager_connected_to_http_proxy
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_retry_ssl_error
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_failed_fingerprint_verification
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_custom_validation_failure_terminates
--deselect test/with_dummyserver/test_socketlevel.py::TestSSL::test_requesting_large_resources_via_ssl
--deselect test/test_connection.py::TestConnection::test_recent_date
--deselect test/test_no_ssl.py::TestImportWithoutSSL::test_cannot_import_ssl
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failed_fingerprint_verification
--deselect test/contrib/test_pyopenssl.py::TestSSL::test_ssl_custom_validation_failure_terminates
--deselect=test/contrib/test_pyopenssl.py::TestSSL::test_ssl_read_timeout
--deselect=test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_read_timeout
)
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")