Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
python-elastic-transport


Commits:
b7df8d4d by Robin Candau at 2024-12-27T22:46:46+01:00
upgpkg: 8.15.1-3: python-httpx 0.28 rebuild

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + remove_tests_incompatible_with_httpcore_1.0.6.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-elastic-transport
        pkgdesc = Transport classes and utilities shared among Python Elastic 
client libraries
        pkgver = 8.15.1
-       pkgrel = 2
+       pkgrel = 3
        url = https://github.com/elastic/elastic-transport-python
        arch = any
        license = Apache-2.0
@@ -23,6 +23,8 @@ pkgbase = python-elastic-transport
        depends = python-requests
        depends = python-urllib3
        source = 
python-elastic-transport-8.15.1.tar.gz::https://github.com/elastic/elastic-transport-python/archive/v8.15.1.tar.gz
+       source = remove_tests_incompatible_with_httpcore_1.0.6.patch
        sha256sums = 
9bc0aa1b94cc0761efeceac5f0ba1d7dd19bf8b5571d863ca49c6b2f212db75c
+       sha256sums = 
c6e0f55c5ce4bd412a7644e1ab54b1b29dd2315fecdd5a0ed1a410942ba91798
 
 pkgname = python-elastic-transport


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 pkgname=python-elastic-transport
 _pkgname=elastic-transport-python
 pkgver=8.15.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Transport classes and utilities shared among Python Elastic client 
libraries"
 arch=(any)
 url="https://github.com/elastic/elastic-transport-python";
@@ -31,8 +31,17 @@ checkdepends=(
   python-respx
   python-trustme
 )
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('9bc0aa1b94cc0761efeceac5f0ba1d7dd19bf8b5571d863ca49c6b2f212db75c')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        'remove_tests_incompatible_with_httpcore_1.0.6.patch')
+sha256sums=('9bc0aa1b94cc0761efeceac5f0ba1d7dd19bf8b5571d863ca49c6b2f212db75c'
+            'c6e0f55c5ce4bd412a7644e1ab54b1b29dd2315fecdd5a0ed1a410942ba91798')
+
+prepare() {
+  cd $_pkgname-$pkgver
+  # Temporarily remove httpcore / httpx related tests due to incompatibilities 
with httpcore >= 1.0.6
+  # See 
https://github.com/encode/httpx/discussions/3214#discussioncomment-10830925
+  patch -Np1 -i $srcdir/remove_tests_incompatible_with_httpcore_1.0.6.patch
+}
 
 build() {
   cd $_pkgname-$pkgver


=====================================
remove_tests_incompatible_with_httpcore_1.0.6.patch
=====================================
@@ -0,0 +1,26 @@
+diff --git a/tests/node/test_tls_versions.py b/tests/node/test_tls_versions.py
+index e687d9f..488e393 100644
+--- a/tests/node/test_tls_versions.py
++++ b/tests/node/test_tls_versions.py
+@@ -109,21 +109,6 @@ async def test_supported_tls_versions(node_class, url: 
str, ssl_version: int):
+     assert resp.status == 200
+ 
+ 
+-@node_classes
[email protected](
+-    ["url", "ssl_version"],
+-    unsupported_version_params,
+-)
[email protected]
+-async def test_unsupported_tls_versions(node_class, url: str, ssl_version: 
int):
+-    node_config = url_to_node_config(url).replace(ssl_version=ssl_version)
+-    node = node_class(node_config)
+-
+-    with pytest.raises(TlsError) as e:
+-        await await_if_coro(node.perform_request("GET", "/"))
+-    assert "unsupported protocol" in str(e.value) or "handshake failure" in 
str(e.value)
+-
+-
+ @node_classes
+ @pytest.mark.parametrize("ssl_version", [0, "TLSv1", object()])
+ def test_ssl_version_value_error(node_class, ssl_version):



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-elastic-transport/-/commit/b7df8d4d4c3cf6118986b1c1af9313f070764271

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


Reply via email to