dev-python/asyncpg: new package, add 0.32.0

以 guru 的 0.31.0 ebuild 为基础升到 0.32.0,cflags 补丁按 0.32.0 重新生成。

Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
This commit is contained in:
Yongxiang Liang authored and Zakk committed 2026-10-25 03:11:58 +11:00
1 parent 2aaa83c839
commit de1b96befe
5 files changed
+122

No files matched your search

+5
View File
@@ -1048,6 +1048,11 @@ prefix = "v"
github_account = ["OriPoin", "gouwazi"]
autobump = true
["dev-python/asyncpg"]
source = "pypi"
pypi = "asyncpg"
github_account = ["liangyongxiang"]
["dev-python/autopxd2"]
source = "github"
github = "elijahr/python-autopxd2"
+2
View File
@@ -0,0 +1,2 @@
DIST asyncpg-0.32.0.tar.gz 1075156 BLAKE2B 785bd3fe67c71fb40eedbdc65e1dc54ffff9adddff597cc798b9474a49292f5c61cb6c16e1f370d3446b7b624bcb9410f519b6598d6d15a3d7ddb04e65d2e147 SHA512 707061f256de436a162aea7816e906591596bf86d979c9a899919f7e29a46566fd008d956d3b77a6d652910abbd042078663fc6516f42b3c866837832268ff0f
DIST asyncpg-0.32.0.tar.gz.provenance 9703 BLAKE2B 25ea890869c55c61f31ebbd08d2ebbc76546965ce17e4d3a315d7c4d4dbb6da6e754e60d164e95bd53acaf3c9bc2b76fa2a508aff72205812534f6232eff0ab6 SHA512 73e34d935737670689d1bff8abb2348fec28c73c48b8fd6a59f1cd60bc1561388fa0576244768163a0737f9872a34ec1c48b4fdf246907fab4297e22ace0ea7c
+84
View File
@@ -0,0 +1,84 @@
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..15} ) # doesn't build with pypy3
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO="https://github.com/MagicStack/asyncpg"
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"
IUSE="kerberos"
RDEPEND="
kerberos? ( dev-python/gssapi[${PYTHON_USEDEP}] )
"
BDEPEND="
>=dev-python/cython-3.2.1[${PYTHON_USEDEP}]
<dev-python/cython-4[${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.32.0-cflags.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 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
}
@@ -0,0 +1,15 @@
Do not overwrite user's optimization.
Bug: https://bugs.gentoo.org/887651
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@
CYTHON_DEPENDENCY = 'Cython>=3.2.1,<4.0.0'
-CFLAGS = ['-O2']
+CFLAGS = []
LDFLAGS = []
if platform.uname().system != 'Windows':
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>tanekliang@gmail.com</email>
<name>Yongxiang Liang</name>
</maintainer>
<upstream>
<remote-id type="github">MagicStack/asyncpg</remote-id>
<remote-id type="pypi">asyncpg</remote-id>
<maintainer>
<name>MagicStack Inc</name>
<email>hello@magic.io</email>
</maintainer>
</upstream>
</pkgmetadata>