summaryrefslogtreecommitdiff
path: root/dev-python/asyncpg
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-07-07 19:00:05 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-07-07 19:00:05 +0000
commite2c8371499a6ce7ef5136931610249a0b81053ef (patch)
tree338829ad3026f0a6fa64b5194f31c9c4b1bff67f /dev-python/asyncpg
parent6b6784eac42fb51ff3ec279d942327682adc6ddc (diff)
downloadbaldeagleos-repo-e2c8371499a6ce7ef5136931610249a0b81053ef.tar.gz
baldeagleos-repo-e2c8371499a6ce7ef5136931610249a0b81053ef.tar.xz
baldeagleos-repo-e2c8371499a6ce7ef5136931610249a0b81053ef.zip
Adding metadata
Diffstat (limited to 'dev-python/asyncpg')
-rw-r--r--dev-python/asyncpg/asyncpg-0.30.0.ebuild2
-rw-r--r--dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch67
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/asyncpg/asyncpg-0.30.0.ebuild b/dev-python/asyncpg/asyncpg-0.30.0.ebuild
index be5a30782497..82d0388fcdb7 100644
--- a/dev-python/asyncpg/asyncpg-0.30.0.ebuild
+++ b/dev-python/asyncpg/asyncpg-0.30.0.ebuild
@@ -37,8 +37,10 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-0.30.0-cflags.patch
+ "${FILESDIR}"/${PN}-0.30.0-disable-broken-tests.patch
)
+EPYTEST_PLUGINS=( )
EPYTEST_IGNORE=(
# checks versions from env variables
"${S}"/tests/test__environment.py
diff --git a/dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch b/dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch
new file mode 100644
index 000000000000..1fafbc25f3c0
--- /dev/null
+++ b/dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch
@@ -0,0 +1,67 @@
+From 5a1ee01f8bc8fc6709ef4f636f7a67029d90e26d Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@edgedb.com>
+Date: Fri, 14 Mar 2025 17:58:46 -0700
+Subject: [PATCH] Disable connection URI tests broken by a recent Python fix
+ (#1244)
+
+A fix for python/cpython#105704 broke parsing of URIs containing
+multiple hosts if one or all of the hosts are IPv6 address literals.
+This blocks CI, so disable those tests for now until this is fixed
+properly.
+---
+ tests/test_connect.py | 39 ++++++++++++++++++++-------------------
+ 1 file changed, 20 insertions(+), 19 deletions(-)
+
+diff --git a/tests/test_connect.py b/tests/test_connect.py
+index 0037ee5..024c29e 100644
+--- a/tests/test_connect.py
++++ b/tests/test_connect.py
+@@ -846,25 +846,26 @@ class TestConnectParams(tb.TestCase):
+ ),
+ },
+
+- {
+- 'name': 'dsn_ipv6_multi_host',
+- 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
+- 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
+- 'database': 'db',
+- 'user': 'user',
+- 'target_session_attrs': 'any',
+- })
+- },
+-
+- {
+- 'name': 'dsn_ipv6_multi_host_port',
+- 'dsn': 'postgresql://user@[2001:db8::1234]:1111,[::1]:2222/db',
+- 'result': ([('2001:db8::1234', 1111), ('::1', 2222)], {
+- 'database': 'db',
+- 'user': 'user',
+- 'target_session_attrs': 'any',
+- })
+- },
++ # broken by https://github.com/python/cpython/pull/129418
++ # {
++ # 'name': 'dsn_ipv6_multi_host',
++ # 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
++ # 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
++ # 'database': 'db',
++ # 'user': 'user',
++ # 'target_session_attrs': 'any',
++ # })
++ # },
++
++ # {
++ # 'name': 'dsn_ipv6_multi_host_port',
++ # 'dsn': 'postgresql://user@[2001:db8::1234]:1111,[::1]:2222/db',
++ # 'result': ([('2001:db8::1234', 1111), ('::1', 2222)], {
++ # 'database': 'db',
++ # 'user': 'user',
++ # 'target_session_attrs': 'any',
++ # })
++ # },
+
+ {
+ 'name': 'dsn_ipv6_multi_host_query_part',
+--
+2.50.0
+