1 |
commit: 3d0f7a23ce25c1a660310869fc6ea112532976d0 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Fri Nov 4 07:21:35 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sat Nov 5 14:41:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d0f7a23 |
7 |
|
8 |
dev-python/pg8000: add 1.29.2, drop 1.26.1 |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/pg8000/Manifest | 2 +- |
13 |
dev-python/pg8000/pg8000-1.26.1.ebuild | 34 --------------- |
14 |
dev-python/pg8000/pg8000-1.29.2.ebuild | 79 ++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 80 insertions(+), 35 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pg8000/Manifest b/dev-python/pg8000/Manifest |
18 |
index a93818892..674e97bca 100644 |
19 |
--- a/dev-python/pg8000/Manifest |
20 |
+++ b/dev-python/pg8000/Manifest |
21 |
@@ -1,2 +1,2 @@ |
22 |
-DIST pg8000-1.26.1.tar.gz 116994 BLAKE2B 4db3186e72afb2e2fae441c1bbb974768e0064276f1ad571316a531cbc590edfcca4c3f4ef1fd493e80e7ebd1817bee354413ea158ec191434e8530007af0ee3 SHA512 d085d4992be18868da6b6f67efcb1e5f41cd05a13b0f4361685e5e8ada14af02ef4ee17558809b447a118cf8380fab13e8932d49fd14d2ee2472b191f8531289 |
23 |
DIST pg8000-1.29.1.tar.gz 92221 BLAKE2B a1e43f445848283472b0aee84f05d3e1c0f8f2d6b8c619789f9e1d961dae240c9ebfb8a1fb22af55f4635bb89f036f8dd1ece477b3b68bff5c1b68ccac32b0b4 SHA512 27ced0ae82e522fabdf3a69b07927223695a7c5658f56f75dbfa43f6923b7a914ec54143421324839c07850e10f5f61ca9bc31155af3e4e600429a1889aedea7 |
24 |
+DIST pg8000-1.29.2.tar.gz 92786 BLAKE2B de39587bb34f21b5c9c4477dd5380d3f790091970867a342c87fac91383e68e8b06e883f25130eefbb88d929d869018881558750f735c81615fbcdc96f9c796b SHA512 3e40d254800c7354097372cc58abbd633316e9e9340d02cc20f21a2dc6c87b559a157c9719b6f15cf2d96c393e0c904c6d1310ea9d6367bb808c3c13114ec431 |
25 |
|
26 |
diff --git a/dev-python/pg8000/pg8000-1.26.1.ebuild b/dev-python/pg8000/pg8000-1.26.1.ebuild |
27 |
deleted file mode 100644 |
28 |
index d51a98bf1..000000000 |
29 |
--- a/dev-python/pg8000/pg8000-1.26.1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,34 +0,0 @@ |
32 |
-# Copyright 1999-2022 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=8 |
36 |
- |
37 |
-PYTHON_COMPAT=( python3_{8..10} ) |
38 |
- |
39 |
-inherit distutils-r1 |
40 |
- |
41 |
-DESCRIPTION="A Pure-Python PostgreSQL Driver" |
42 |
-HOMEPAGE=" |
43 |
- https://github.com/tlocke/pg8000 |
44 |
- https://pypi.org/project/pg8000/ |
45 |
-" |
46 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
- |
48 |
-SLOT="0" |
49 |
-LICENSE="BSD" |
50 |
-KEYWORDS="~amd64" |
51 |
- |
52 |
-RDEPEND=">=dev-python/scramp-1.4.1[${PYTHON_USEDEP}]" |
53 |
-DEPEND="${RDEPEND}" |
54 |
-BDEPEND=" |
55 |
- test? ( |
56 |
- dev-db/postgresql |
57 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
58 |
- dev-python/pytest-benchmark[${PYTHON_USEDEP}] |
59 |
- dev-python/pytz[${PYTHON_USEDEP}] |
60 |
- ) |
61 |
-" |
62 |
- |
63 |
-RESTRICT="test" # tests require a running postgresql |
64 |
- |
65 |
-distutils_enable_tests pytest |
66 |
|
67 |
diff --git a/dev-python/pg8000/pg8000-1.29.2.ebuild b/dev-python/pg8000/pg8000-1.29.2.ebuild |
68 |
new file mode 100644 |
69 |
index 000000000..131b4cd09 |
70 |
--- /dev/null |
71 |
+++ b/dev-python/pg8000/pg8000-1.29.2.ebuild |
72 |
@@ -0,0 +1,79 @@ |
73 |
+# Copyright 1999-2022 Gentoo Authors |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+ |
76 |
+EAPI=8 |
77 |
+ |
78 |
+PYTHON_COMPAT=( python3_{8..10} ) |
79 |
+DISTUTILS_USE_PEP517=setuptools |
80 |
+inherit databases distutils-r1 edo |
81 |
+ |
82 |
+DESCRIPTION="A Pure-Python PostgreSQL Driver" |
83 |
+HOMEPAGE=" |
84 |
+ https://github.com/tlocke/pg8000 |
85 |
+ https://pypi.org/project/pg8000/ |
86 |
+" |
87 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
88 |
+ |
89 |
+SLOT="0" |
90 |
+LICENSE="BSD" |
91 |
+KEYWORDS="~amd64" |
92 |
+ |
93 |
+RDEPEND=" |
94 |
+ >=dev-python/scramp-1.4.3[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] |
96 |
+" |
97 |
+BDEPEND=" |
98 |
+ test? ( |
99 |
+ $(python_gen_impl_dep "ssl") |
100 |
+ $(epostgres --get-depend) |
101 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
102 |
+ dev-python/pytest-benchmark[${PYTHON_USEDEP}] |
103 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
104 |
+ ) |
105 |
+" |
106 |
+ |
107 |
+SSL_TESTS=( |
108 |
+ test/dbapi/auth/test_md5_ssl.py |
109 |
+ test/dbapi/auth/test_scram-sha-256_ssl.p |
110 |
+ test/legacy/auth/test_md5_ssl.py |
111 |
+ test/legacy/auth/test_scram-sha-256_ssl.py |
112 |
+ test/native/auth/test_md5_ssl.py |
113 |
+ test/native/auth/test_scram-sha-256_ssl.py |
114 |
+) |
115 |
+ |
116 |
+EPYTEST_DESELECT=( |
117 |
+ # traceback doesn't match |
118 |
+ test/test_readme.py |
119 |
+ # TODO: ssl tests (need certificates and stuff) |
120 |
+ "${SSL_TESTS[@]}" |
121 |
+ # "database doesn't exist" errors |
122 |
+ test/dbapi/auth/test_gss.py |
123 |
+ test/legacy/auth/test_gss.py |
124 |
+ test/native/auth/test_gss.py |
125 |
+ # too unstable |
126 |
+ test/native/test_typeconversion.py::test_roundtrip_oid |
127 |
+) |
128 |
+ |
129 |
+distutils_enable_tests pytest |
130 |
+ |
131 |
+python_test_ssl() { |
132 |
+ epytest "${SSL_TESTS[@]}" |
133 |
+} |
134 |
+ |
135 |
+src_test() { |
136 |
+ epsql() { |
137 |
+ edo psql -q -h "${sockdir}" -U postgres "${@}" |
138 |
+ } |
139 |
+ |
140 |
+ local -x PGPORT="65432" |
141 |
+ local -x PGPASSWORD="cpsnow" |
142 |
+ local sockdir=$(epostgres --get-sockdir) |
143 |
+ |
144 |
+ epostgres --start ${PGPORT} |
145 |
+ epsql -c "ALTER ROLE postgres WITH PASSWORD '${PGPASSWORD}';" |
146 |
+ epsql -c "CREATE EXTENSION hstore;" |
147 |
+ epsql -c "SELECT pg_reload_conf();" |
148 |
+ |
149 |
+ distutils-r1_src_test |
150 |
+ epostgres --stop |
151 |
+} |