diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-17 17:44:22 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-17 17:44:22 +0000 |
| commit | 7632b34e6ed07bcc4fb9768ae7f1ada4bc0c5c45 (patch) | |
| tree | ed15e8795eee3436b6adc17c30f8b9cbf6df83c0 /dev-python/asyncpg | |
| parent | f3cb5e39d493ee8cb26522cab48c1f35d5eeb032 (diff) | |
| download | baldeagleos-repo-7632b34e6ed07bcc4fb9768ae7f1ada4bc0c5c45.tar.gz baldeagleos-repo-7632b34e6ed07bcc4fb9768ae7f1ada4bc0c5c45.tar.xz baldeagleos-repo-7632b34e6ed07bcc4fb9768ae7f1ada4bc0c5c45.zip | |
Adding metadata
Diffstat (limited to 'dev-python/asyncpg')
| -rw-r--r-- | dev-python/asyncpg/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/asyncpg/asyncpg-0.26.0.ebuild | 33 | ||||
| -rw-r--r-- | dev-python/asyncpg/asyncpg-0.29.0.ebuild | 67 |
3 files changed, 68 insertions, 34 deletions
diff --git a/dev-python/asyncpg/Manifest b/dev-python/asyncpg/Manifest index af055e2fe2a2..057e9f59e011 100644 --- a/dev-python/asyncpg/Manifest +++ b/dev-python/asyncpg/Manifest @@ -1,2 +1,2 @@ -DIST asyncpg-0.26.0.tar.gz 809997 BLAKE2B 360dfadcd729ade63c156e3a16def7f652dbc4d0c76189ac88e01fa814f9a3ab4f1bd2852658a93e22a8e275fb1a4e69df2e3c30f457110291f0641ac6d12d8d SHA512 ef92316fd430a1819aa8170abd67ecfc1cf29c42cb6dc06cf5047cdd71d4abf441c8b86bacafaaa8c0c0fd7c66daa275e9ed68b00e5166bb27929f25cab1dcbd DIST asyncpg-0.27.0.tar.gz 808881 BLAKE2B e4fe88346a3fb4d9b6ce74a4e12db333f1aefd8844d6b08091a1e507a56754bb74dcbdd1b43329f1df24725f03c808a1862c8c4587c9ec95c4800f30ab78458c SHA512 66d4e16cba8ebebfa0403c7d3b1d3ee1b9b8f55a9b70f57e809d28161873d74750152e6ed548b17ceb97ca84f7a669a5fa503c824a861b295db731f86bfb0137 +DIST asyncpg-0.29.0.tar.gz 820455 BLAKE2B 9bb5606dfb103e066dcfd15c327fe8a8135bf4433c816dc354d84227e40b9f18bb2788ead0dd25b087f97b3113645b6dcfd8991a7bb6e2e71528d122c41105d5 SHA512 5db979496323fcf4068d5de111b52f2ae1ad9efe68f80c28e6303ad936eb051d1792409f1e31fb86dc35caad5ef9b92c40e4f6dcbcccc3907ab2247f61db5504 diff --git a/dev-python/asyncpg/asyncpg-0.26.0.ebuild b/dev-python/asyncpg/asyncpg-0.26.0.ebuild deleted file mode 100644 index 14aa0787bd21..000000000000 --- a/dev-python/asyncpg/asyncpg-0.26.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) # doesn't build with pypy3 -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 pypi - -DESCRIPTION="A fast PostgreSQL Database Client Library for Python/asyncio" -HOMEPAGE="https://github.com/MagicStack/asyncpg" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-db/postgresql - dev-python/flake8[${PYTHON_USEDEP}] - dev-python/uvloop[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests unittest - -distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio dev-python/sphinx-rtd-theme - -python_test() { - cd "${T}" || die - USE_UVLOOP=1 eunittest "${S}"/tests -} diff --git a/dev-python/asyncpg/asyncpg-0.29.0.ebuild b/dev-python/asyncpg/asyncpg-0.29.0.ebuild new file mode 100644 index 000000000000..05357485fc84 --- /dev/null +++ b/dev-python/asyncpg/asyncpg-0.29.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) # doesn't build with pypy3 +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="PostgreSQL driver for asyncio" +HOMEPAGE=" + https://pypi.org/project/asyncpg/ + https://github.com/MagicStack/asyncpg +" + +LICENSE="Apache-2.0 PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/async-timeout-4.0.3[${PYTHON_USEDEP}] + ' python3_{10..11}) +" +BDEPEND=" + <dev-python/cython-3[${PYTHON_USEDEP}] + test? ( + dev-db/postgresql[server] + dev-python/uvloop[${PYTHON_USEDEP}] + ) +" + +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/sphinxcontrib-asyncio \ + dev-python/sphinx-rtd-theme + +src_prepare() { + # remove pre-generated Cython sources + rm asyncpg/{pgproto/pgproto,protocol/protocol}.c || die + + distutils-r1_src_prepare +} + +src_configure() { + use debug && \ + export ASYNCPG_DEBUG=1 + + distutils-r1_src_configure +} + +python_test() { + cd "${T}" || die + for opt in "" "1"; do + einfo " testing with USE_UVLOOP='${opt}'" + USE_UVLOOP="${opt}" epytest "${S}"/tests + done +} |
