mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
The `test_connect_params` test is broken due to changes in URI parsing of multiple hosts containing IPv6 addresses and is temporarily disabled upstream. Skip the test until it is fixed upstream. ``` ____________________ TestConnectParams.test_connect_params _____________________ Traceback (most recent call last): File "/usr/lib/python3.12/unittest/case.py", line 58, in testPartExecutor yield File "/usr/lib/python3.12/unittest/case.py", line 634, in run self._callTestMethod(testMethod) File "/usr/lib/python3.12/unittest/case.py", line 589, in _callTestMethod if method() is not None: ^^^^^^^^ File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/tests/test_connect.py", line 1237, in test_connect_params self.run_testcase(testcase) File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/tests/test_connect.py", line 1154, in run_testcase addrs, params = connect_utils._parse_connect_dsn_and_args( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildozer/aports/community/py3-asyncpg/src/asyncpg-0.30.0/testenv/lib/python3.12/site-packages/asyncpg/connect_utils.py", line 280, in _parse_connect_dsn_and_args parsed = urllib.parse.urlparse(dsn) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/parse.py", line 395, in urlparse splitresult = urlsplit(url, scheme, allow_fragments) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/urllib/parse.py", line 516, in urlsplit _check_bracketed_netloc(netloc) File "/usr/lib/python3.12/urllib/parse.py", line 451, in _check_bracketed_netloc raise ValueError("Invalid IPv6 URL") ValueError: Invalid IPv6 URL ``` Upstream issue: https://github.com/MagicStack/asyncpg/issues/1236 Related PR: https://github.com/MagicStack/asyncpg/pull/1244
57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-asyncpg
|
|
pkgver=0.30.0
|
|
pkgrel=0
|
|
pkgdesc="A fast PostgreSQL Database Client Library for Python/asyncio"
|
|
url="https://github.com/MagicStack/asyncpg"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="py3-async-timeout"
|
|
makedepends="
|
|
cython
|
|
py3-build
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
checkdepends="
|
|
postgresql
|
|
postgresql-contrib
|
|
py3-distro
|
|
py3-pytest
|
|
py3-pytest-runner
|
|
py3-uvloop
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/asyncpg/asyncpg-$pkgver.tar.gz"
|
|
builddir="$srcdir/asyncpg-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
|
|
mv asyncpg asyncpg-off
|
|
|
|
# test_connect_params: ValueError: Invalid IPv6 URL
|
|
# test broken in a cpython update and temporarily disabled upstream
|
|
# https://github.com/MagicStack/asyncpg/issues/1236
|
|
testenv/bin/python3 -m pytest -k 'not test_connect_params'
|
|
}
|
|
|
|
package() {
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
|
|
|
install -vDm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|
|
|
|
sha512sums="
|
|
bbfc83ae881f454cb16343037ae48fbc9c9c65b57d11fc1e28ec054b9051d823f7da0735307090d0ce4e5dca166590b147d0f9d383a1ac0b894396290aa0782a py3-asyncpg-0.30.0.tar.gz
|
|
"
|