Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/asyncpg/
Date: Thu, 03 Nov 2022 03:09:08
Message-Id: 1667437972.62688c3054329d2e12c243ebf4af33719af67625.cybertailor@gentoo
1 commit: 62688c3054329d2e12c243ebf4af33719af67625
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Wed Nov 2 23:13:43 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Thu Nov 3 01:12:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62688c30
7
8 dev-python/asyncpg: add 0.27.0, drop 0.25.0
9
10 Closes: https://bugs.gentoo.org/878787
11 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
12
13 dev-python/asyncpg/Manifest | 2 +-
14 dev-python/asyncpg/asyncpg-0.25.0.ebuild | 26 ----------------------
15 dev-python/asyncpg/asyncpg-0.27.0.ebuild | 37 ++++++++++++++++++++++++++++++++
16 3 files changed, 38 insertions(+), 27 deletions(-)
17
18 diff --git a/dev-python/asyncpg/Manifest b/dev-python/asyncpg/Manifest
19 index 4ccb5036a..af055e2fe 100644
20 --- a/dev-python/asyncpg/Manifest
21 +++ b/dev-python/asyncpg/Manifest
22 @@ -1,2 +1,2 @@
23 -DIST asyncpg-0.25.0.tar.gz 804292 BLAKE2B 55e679716fe6dab82be9142f1abaa0e47671341b91f4fd182ad564e41a61dbc91990f767e6b0e7d0d00658d530075493d67f284272239c92d3015016ec0dfb2b SHA512 7afa5ae42c0d5cab93bb1c3266bad11ce2e7c271d7ffd2c5d92e373fd8e06be89e4b18e8fd3ffd7e750e913944630f1ae6c947e20faa63f99ded7d867ad6cd80
24 DIST asyncpg-0.26.0.tar.gz 809997 BLAKE2B 360dfadcd729ade63c156e3a16def7f652dbc4d0c76189ac88e01fa814f9a3ab4f1bd2852658a93e22a8e275fb1a4e69df2e3c30f457110291f0641ac6d12d8d SHA512 ef92316fd430a1819aa8170abd67ecfc1cf29c42cb6dc06cf5047cdd71d4abf441c8b86bacafaaa8c0c0fd7c66daa275e9ed68b00e5166bb27929f25cab1dcbd
25 +DIST asyncpg-0.27.0.tar.gz 808881 BLAKE2B e4fe88346a3fb4d9b6ce74a4e12db333f1aefd8844d6b08091a1e507a56754bb74dcbdd1b43329f1df24725f03c808a1862c8c4587c9ec95c4800f30ab78458c SHA512 66d4e16cba8ebebfa0403c7d3b1d3ee1b9b8f55a9b70f57e809d28161873d74750152e6ed548b17ceb97ca84f7a669a5fa503c824a861b295db731f86bfb0137
26
27 diff --git a/dev-python/asyncpg/asyncpg-0.25.0.ebuild b/dev-python/asyncpg/asyncpg-0.25.0.ebuild
28 deleted file mode 100644
29 index 19f81658b..000000000
30 --- a/dev-python/asyncpg/asyncpg-0.25.0.ebuild
31 +++ /dev/null
32 @@ -1,26 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -PYTHON_COMPAT=( python3_{8..10} )
39 -
40 -inherit distutils-r1
41 -
42 -DESCRIPTION="A fast PostgreSQL Database Client Library for Python/asyncio."
43 -HOMEPAGE="https://github.com/MagicStack/asyncpg"
44 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
45 -
46 -LICENSE="Apache-2.0"
47 -SLOT="0"
48 -KEYWORDS="~amd64 ~x86"
49 -
50 -# ModuleNotFoundError: No module named 'asyncpg.protocol.protocol'
51 -# for some reason, still doesn't work if package is already installed
52 -# or with distutils_install_for_testing function
53 -RESTRICT="test"
54 -
55 -BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
56 -
57 -distutils_enable_tests pytest
58 -distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio dev-python/sphinx_rtd_theme
59
60 diff --git a/dev-python/asyncpg/asyncpg-0.27.0.ebuild b/dev-python/asyncpg/asyncpg-0.27.0.ebuild
61 new file mode 100644
62 index 000000000..8a3356cc1
63 --- /dev/null
64 +++ b/dev-python/asyncpg/asyncpg-0.27.0.ebuild
65 @@ -0,0 +1,37 @@
66 +# Copyright 1999-2022 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI=8
70 +
71 +PYTHON_COMPAT=( python3_{8..11} ) # doesn't build with pypy3
72 +DISTUTILS_USE_PEP517=setuptools
73 +inherit distutils-r1
74 +
75 +DESCRIPTION="A fast PostgreSQL Database Client Library for Python/asyncio"
76 +HOMEPAGE="https://github.com/MagicStack/asyncpg"
77 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
78 +
79 +LICENSE="Apache-2.0"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +
83 +BDEPEND="
84 + dev-python/cython[${PYTHON_USEDEP}]
85 + test? (
86 + dev-db/postgresql
87 + dev-python/flake8[${PYTHON_USEDEP}]
88 + dev-python/uvloop[${PYTHON_USEDEP}]
89 + )
90 +"
91 +
92 +distutils_enable_tests unittest
93 +
94 +distutils_enable_sphinx docs dev-python/sphinxcontrib-asyncio dev-python/sphinx_rtd_theme
95 +
96 +python_test() {
97 + cd "${T}" || die
98 + for opt in "" "1"; do
99 + einfo " testing with USE_UVLOOP='${opt}'"
100 + USE_UVLOOP="${opt}" eunittest "${S}"/tests
101 + done
102 +}