Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/
Date: Thu, 03 Nov 2022 19:27:17
Message-Id: 1667503618.d050862ac8f993214d0fb3e5b61f30de887e5eb0.arthurzam@gentoo
1 commit: d050862ac8f993214d0fb3e5b61f30de887e5eb0
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 19:26:58 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 19:26:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d050862a
7
8 dev-python/fakeredis: drop 1.9.1, 1.9.2, 1.9.3
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/fakeredis/Manifest | 3 -
13 dev-python/fakeredis/fakeredis-1.9.1.ebuild | 88 -----------------------------
14 dev-python/fakeredis/fakeredis-1.9.2.ebuild | 88 -----------------------------
15 dev-python/fakeredis/fakeredis-1.9.3.ebuild | 87 ----------------------------
16 4 files changed, 266 deletions(-)
17
18 diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
19 index 86e4f5049200..001a1a961b8d 100644
20 --- a/dev-python/fakeredis/Manifest
21 +++ b/dev-python/fakeredis/Manifest
22 @@ -1,5 +1,2 @@
23 DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf SHA512 8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
24 -DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67 SHA512 27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
25 -DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410 SHA512 6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed
26 -DIST fakeredis-py-1.9.3.gh.tar.gz 87068 BLAKE2B ee657bd0b04f5701c9e6445ca646fcc510dc3235407372fec9891f7d1adc5cacbd7a52e2d520c930f53491c2a18f5578d1b5186337953439f93fbb69a5e65ef8 SHA512 5255a75bae15ac325a41a273c70a467c8622d5992d40967e4ac21920c0563dbad808e9b82af203e72e3404f74a7bbfd2c12f5d854f9d353defec5b0333843266
27 DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053 SHA512 2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e
28
29 diff --git a/dev-python/fakeredis/fakeredis-1.9.1.ebuild b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
30 deleted file mode 100644
31 index 1adc1b69c373..000000000000
32 --- a/dev-python/fakeredis/fakeredis-1.9.1.ebuild
33 +++ /dev/null
34 @@ -1,88 +0,0 @@
35 -# Copyright 2020-2022 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=8
39 -
40 -DISTUTILS_USE_PEP517=poetry
41 -PYTHON_COMPAT=( pypy3 python3_{8..11} )
42 -
43 -inherit distutils-r1
44 -
45 -MY_P=fakeredis-py-${PV}
46 -DESCRIPTION="Fake implementation of redis API for testing purposes"
47 -HOMEPAGE="
48 - https://github.com/cunla/fakeredis-py/
49 - https://pypi.org/project/fakeredis/
50 -"
51 -SRC_URI="
52 - https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
53 - -> ${MY_P}.gh.tar.gz
54 -"
55 -S=${WORKDIR}/${MY_P}
56 -
57 -LICENSE="BSD"
58 -SLOT="0"
59 -KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
60 -
61 -RDEPEND="
62 - >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
63 - <dev-python/redis-py-4.4[${PYTHON_USEDEP}]
64 - >=dev-python/six-1.16.0[${PYTHON_USEDEP}]
65 - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
66 -"
67 -BDEPEND="
68 - test? (
69 - dev-db/redis
70 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
71 - dev-python/pytest-mock[${PYTHON_USEDEP}]
72 - )
73 -"
74 -
75 -distutils_enable_tests pytest
76 -
77 -src_prepare() {
78 - # unpin redis
79 - sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
80 - distutils-r1_src_prepare
81 -}
82 -
83 -python_test() {
84 - local EPYTEST_DESELECT=(
85 - # also lupa
86 - test/test_aioredis2.py::test_failed_script_error
87 - # TODO
88 - "test/test_fakeredis.py::test_set_get_nx[StrictRedis]"
89 - "test/test_fakeredis.py::test_lpop_count[StrictRedis]"
90 - "test/test_fakeredis.py::test_rpop_count[StrictRedis]"
91 - "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]"
92 - )
93 - local EPYTEST_IGNORE=(
94 - # these tests fail a lot...
95 - test/test_hypothesis.py
96 - )
97 - local args=(
98 - # tests requiring lupa (lua support)
99 - -k 'not test_eval and not test_lua and not test_script'
100 - )
101 - epytest "${args[@]}"
102 -}
103 -
104 -src_test() {
105 - local redis_pid="${T}"/redis.pid
106 - local redis_port=6379
107 -
108 - einfo "Spawning Redis"
109 - einfo "NOTE: Port ${redis_port} must be free"
110 - "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
111 - daemonize yes
112 - pidfile ${redis_pid}
113 - port ${redis_port}
114 - bind 127.0.0.1
115 - EOF
116 -
117 - # Run the tests
118 - distutils-r1_src_test
119 -
120 - # Clean up afterwards
121 - kill "$(<"${redis_pid}")" || die
122 -}
123
124 diff --git a/dev-python/fakeredis/fakeredis-1.9.2.ebuild b/dev-python/fakeredis/fakeredis-1.9.2.ebuild
125 deleted file mode 100644
126 index 0b30f3d6134d..000000000000
127 --- a/dev-python/fakeredis/fakeredis-1.9.2.ebuild
128 +++ /dev/null
129 @@ -1,88 +0,0 @@
130 -# Copyright 2020-2022 Gentoo Authors
131 -# Distributed under the terms of the GNU General Public License v2
132 -
133 -EAPI=8
134 -
135 -DISTUTILS_USE_PEP517=poetry
136 -PYTHON_COMPAT=( pypy3 python3_{8..11} )
137 -
138 -inherit distutils-r1
139 -
140 -MY_P=fakeredis-py-${PV}
141 -DESCRIPTION="Fake implementation of redis API for testing purposes"
142 -HOMEPAGE="
143 - https://github.com/cunla/fakeredis-py/
144 - https://pypi.org/project/fakeredis/
145 -"
146 -SRC_URI="
147 - https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
148 - -> ${MY_P}.gh.tar.gz
149 -"
150 -S=${WORKDIR}/${MY_P}
151 -
152 -LICENSE="BSD"
153 -SLOT="0"
154 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
155 -
156 -RDEPEND="
157 - >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
158 - <dev-python/redis-py-4.4[${PYTHON_USEDEP}]
159 - >=dev-python/six-1.16.0[${PYTHON_USEDEP}]
160 - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
161 -"
162 -BDEPEND="
163 - test? (
164 - dev-db/redis
165 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
166 - dev-python/pytest-mock[${PYTHON_USEDEP}]
167 - )
168 -"
169 -
170 -distutils_enable_tests pytest
171 -
172 -src_prepare() {
173 - # unpin redis
174 - sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
175 - distutils-r1_src_prepare
176 -}
177 -
178 -python_test() {
179 - local EPYTEST_DESELECT=(
180 - # also lupa
181 - test/test_aioredis2.py::test_failed_script_error
182 - # TODO
183 - "test/test_fakeredis.py::test_set_get_nx[StrictRedis]"
184 - "test/test_fakeredis.py::test_lpop_count[StrictRedis]"
185 - "test/test_fakeredis.py::test_rpop_count[StrictRedis]"
186 - "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]"
187 - )
188 - local EPYTEST_IGNORE=(
189 - # these tests fail a lot...
190 - test/test_hypothesis.py
191 - )
192 - local args=(
193 - # tests requiring lupa (lua support)
194 - -k 'not test_eval and not test_lua and not test_script'
195 - )
196 - epytest "${args[@]}"
197 -}
198 -
199 -src_test() {
200 - local redis_pid="${T}"/redis.pid
201 - local redis_port=6379
202 -
203 - einfo "Spawning Redis"
204 - einfo "NOTE: Port ${redis_port} must be free"
205 - "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
206 - daemonize yes
207 - pidfile ${redis_pid}
208 - port ${redis_port}
209 - bind 127.0.0.1
210 - EOF
211 -
212 - # Run the tests
213 - distutils-r1_src_test
214 -
215 - # Clean up afterwards
216 - kill "$(<"${redis_pid}")" || die
217 -}
218
219 diff --git a/dev-python/fakeredis/fakeredis-1.9.3.ebuild b/dev-python/fakeredis/fakeredis-1.9.3.ebuild
220 deleted file mode 100644
221 index 315d3ed64771..000000000000
222 --- a/dev-python/fakeredis/fakeredis-1.9.3.ebuild
223 +++ /dev/null
224 @@ -1,87 +0,0 @@
225 -# Copyright 2020-2022 Gentoo Authors
226 -# Distributed under the terms of the GNU General Public License v2
227 -
228 -EAPI=8
229 -
230 -DISTUTILS_USE_PEP517=poetry
231 -PYTHON_COMPAT=( pypy3 python3_{8..11} )
232 -
233 -inherit distutils-r1
234 -
235 -MY_P=fakeredis-py-${PV}
236 -DESCRIPTION="Fake implementation of redis API for testing purposes"
237 -HOMEPAGE="
238 - https://github.com/cunla/fakeredis-py/
239 - https://pypi.org/project/fakeredis/
240 -"
241 -SRC_URI="
242 - https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
243 - -> ${MY_P}.gh.tar.gz
244 -"
245 -S=${WORKDIR}/${MY_P}
246 -
247 -LICENSE="BSD"
248 -SLOT="0"
249 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
250 -
251 -RDEPEND="
252 - >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
253 - <dev-python/redis-py-4.4[${PYTHON_USEDEP}]
254 - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
255 -"
256 -BDEPEND="
257 - test? (
258 - dev-db/redis
259 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
260 - dev-python/pytest-mock[${PYTHON_USEDEP}]
261 - )
262 -"
263 -
264 -distutils_enable_tests pytest
265 -
266 -src_prepare() {
267 - # unpin redis
268 - sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
269 - distutils-r1_src_prepare
270 -}
271 -
272 -python_test() {
273 - local EPYTEST_DESELECT=(
274 - # also lupa
275 - test/test_aioredis2.py::test_failed_script_error
276 - # TODO
277 - "test/test_fakeredis.py::test_set_get_nx[StrictRedis]"
278 - "test/test_fakeredis.py::test_lpop_count[StrictRedis]"
279 - "test/test_fakeredis.py::test_rpop_count[StrictRedis]"
280 - "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]"
281 - )
282 - local EPYTEST_IGNORE=(
283 - # these tests fail a lot...
284 - test/test_hypothesis.py
285 - )
286 - local args=(
287 - # tests requiring lupa (lua support)
288 - -k 'not test_eval and not test_lua and not test_script'
289 - )
290 - epytest "${args[@]}"
291 -}
292 -
293 -src_test() {
294 - local redis_pid="${T}"/redis.pid
295 - local redis_port=6379
296 -
297 - einfo "Spawning Redis"
298 - einfo "NOTE: Port ${redis_port} must be free"
299 - "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
300 - daemonize yes
301 - pidfile ${redis_pid}
302 - port ${redis_port}
303 - bind 127.0.0.1
304 - EOF
305 -
306 - # Run the tests
307 - distutils-r1_src_test
308 -
309 - # Clean up afterwards
310 - kill "$(<"${redis_pid}")" || die
311 -}