diff options
| author | root <root@alpha.trunkmasters.com> | 2026-08-15 10:12:35 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-08-15 10:12:35 -0500 |
| commit | 99d6652f1c56f6bd0f2fbc564d613297121a6976 (patch) | |
| tree | 555e8d7b4386d89c9230126ef0d9e7ec6e340f7a /dev-python/asyncpg | |
| parent | a5a137d12774b833cc8730fc291f88c7582658dd (diff) | |
| download | baldeagleos-repo-99d6652f1c56f6bd0f2fbc564d613297121a6976.tar.gz baldeagleos-repo-99d6652f1c56f6bd0f2fbc564d613297121a6976.tar.xz baldeagleos-repo-99d6652f1c56f6bd0f2fbc564d613297121a6976.zip | |
Adding metadata
Diffstat (limited to 'dev-python/asyncpg')
| -rw-r--r-- | dev-python/asyncpg/asyncpg-0.30.0.ebuild | 86 | ||||
| -rw-r--r-- | dev-python/asyncpg/asyncpg-0.31.0.ebuild | 1 | ||||
| -rw-r--r-- | dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch | 67 |
3 files changed, 1 insertions, 153 deletions
diff --git a/dev-python/asyncpg/asyncpg-0.30.0.ebuild b/dev-python/asyncpg/asyncpg-0.30.0.ebuild deleted file mode 100644 index 88938fc950f1..000000000000 --- a/dev-python/asyncpg/asyncpg-0.30.0.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{12..14} ) # doesn't build with pypy3 -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 pypi - -DESCRIPTION="An asyncio PostgreSQL driver" -HOMEPAGE=" - https://pypi.org/project/asyncpg/ - https://github.com/MagicStack/asyncpg -" - -LICENSE="Apache-2.0 PSF-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="kerberos" - -RDEPEND=" - kerberos? ( dev-python/gssapi[${PYTHON_USEDEP}] ) -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-db/postgresql[kerberos?,server,ssl] - dev-python/distro[${PYTHON_USEDEP}] - dev-python/uvloop[${PYTHON_USEDEP}] - kerberos? ( - app-crypt/mit-krb5 - dev-python/k5test[${PYTHON_USEDEP}] - ) - ) -" - -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 - # runs flake8 (???) - "${S}"/tests/test__sourcecode.py -) - -distutils_enable_tests pytest - -distutils_enable_sphinx docs \ - dev-python/sphinx-rtd-theme - -python_prepare_all() { - # bug #926720 - cat <<-EOF >> setup.cfg || die - [build_ext] - debug=False - cython_always=True - cython_annotate=False - cython_directives= - EOF - - # remove pre-generated Cython sources - rm asyncpg/{pgproto/pgproto,protocol/protocol}.c || die - - distutils-r1_python_prepare_all -} - -python_configure_all() { - use debug && \ - export ASYNCPG_DEBUG=1 - - use kerberos || \ - EPYTEST_DESELECT+=( tests/test_connect.py::TestGssAuthentication ) -} - -python_test() { - cd "${T}" || die - for opt in "" "1"; do - einfo " testing with USE_UVLOOP='${opt}'" - USE_UVLOOP="${opt}" epytest "${S}"/tests - done -} diff --git a/dev-python/asyncpg/asyncpg-0.31.0.ebuild b/dev-python/asyncpg/asyncpg-0.31.0.ebuild index 33a01c48f330..951407126399 100644 --- a/dev-python/asyncpg/asyncpg-0.31.0.ebuild +++ b/dev-python/asyncpg/asyncpg-0.31.0.ebuild @@ -26,6 +26,7 @@ RDEPEND=" BDEPEND=" >=dev-python/cython-3.2.1[${PYTHON_USEDEP}] <dev-python/cython-4[${PYTHON_USEDEP}] + dev-python/pkg-resources[${PYTHON_USEDEP}] test? ( dev-db/postgresql[kerberos?,server,ssl] dev-python/distro[${PYTHON_USEDEP}] 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 deleted file mode 100644 index 1fafbc25f3c0..000000000000 --- a/dev-python/asyncpg/files/asyncpg-0.30.0-disable-broken-tests.patch +++ /dev/null @@ -1,67 +0,0 @@ -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 - |
