Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/
Date: Sat, 09 Apr 2022 18:41:56
Message-Id: 1649529586.fce0419b29f3b90c5827abc104b1e578adf1110c.mgorny@gentoo
1 commit: fce0419b29f3b90c5827abc104b1e578adf1110c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 18:39:46 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 18:39:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fce0419b
7
8 dev-python/fakeredis: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/fakeredis/Manifest | 1 -
13 dev-python/fakeredis/fakeredis-1.7.0.ebuild | 81 -----------------------------
14 2 files changed, 82 deletions(-)
15
16 diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
17 index 814702242121..8d025a58b420 100644
18 --- a/dev-python/fakeredis/Manifest
19 +++ b/dev-python/fakeredis/Manifest
20 @@ -1,2 +1 @@
21 -DIST fakeredis-1.7.0.gh.tar.gz 71108 BLAKE2B 64b4c8aa2891ac6afd7789e5a8dce4d1a0ccd6a5083b410fd051d871d4ea9748e9d687eb27bbaeea646747f4bf170089d3ef711d6db0d6a88d8b7e755d165b6d SHA512 a8c67929e63196fea45b85097aaf6bf7402679510e471a8d13bdc0f7320e983107416d3e515fa85b1d6a6217fb82dbda7b4425c3c80ac54a1ac50eee875b0fbd
22 DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a SHA512 f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
23
24 diff --git a/dev-python/fakeredis/fakeredis-1.7.0.ebuild b/dev-python/fakeredis/fakeredis-1.7.0.ebuild
25 deleted file mode 100644
26 index 95bc33d0324f..000000000000
27 --- a/dev-python/fakeredis/fakeredis-1.7.0.ebuild
28 +++ /dev/null
29 @@ -1,81 +0,0 @@
30 -# Copyright 2020-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -PYTHON_COMPAT=( pypy3 python3_{8..10} )
36 -inherit distutils-r1 optfeature
37 -
38 -DESCRIPTION="Fake implementation of redis API for testing purposes"
39 -HOMEPAGE="
40 - https://github.com/jamesls/fakeredis/
41 - https://pypi.org/project/fakeredis/"
42 -SRC_URI="
43 - https://github.com/jamesls/fakeredis/archive/${PV}.tar.gz
44 - -> ${P}.gh.tar.gz"
45 -
46 -LICENSE="BSD"
47 -SLOT="0"
48 -KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~sparc x86"
49 -
50 -RDEPEND="
51 - dev-python/redis-py[${PYTHON_USEDEP}]
52 - dev-python/six[${PYTHON_USEDEP}]
53 - dev-python/sortedcontainers[${PYTHON_USEDEP}]
54 -"
55 -BDEPEND="
56 - test? (
57 - dev-db/redis
58 - dev-python/aioredis[${PYTHON_USEDEP}]
59 - dev-python/hypothesis[${PYTHON_USEDEP}]
60 - dev-python/pytest-asyncio[${PYTHON_USEDEP}]
61 - dev-python/pytest-mock[${PYTHON_USEDEP}]
62 - )
63 -"
64 -
65 -distutils_enable_tests pytest
66 -
67 -EPYTEST_DESELECT=(
68 - test/test_aioredis2.py::test_blocking_unblock
69 - test/test_aioredis2.py::test_pubsub
70 - "test/test_aioredis2.py::test_repr[fake]"
71 - test/test_hypothesis.py::TestJoint::test
72 - test/test_hypothesis.py::TestFuzz::test
73 -)
74 -
75 -python_test() {
76 - local EPYTEST_DESELECT=(
77 - # also lupa
78 - "test/test_aioredis2.py::test_failed_script_error[fake]"
79 - )
80 - local args=(
81 - # tests requiring lupa (lua support)
82 - -k 'not test_eval and not test_lua and not test_script'
83 - )
84 - epytest "${args[@]}"
85 -}
86 -
87 -src_test() {
88 - local redis_pid="${T}"/redis.pid
89 - local redis_port=6379
90 - local redis_test_config="
91 - daemonize yes
92 - pidfile ${redis_pid}
93 - port ${redis_port}
94 - bind 127.0.0.1
95 - "
96 -
97 - einfo "Spawning Redis"
98 - einfo "NOTE: Port ${redis_port} must be free"
99 - "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die
100 -
101 - # Run the tests
102 - distutils-r1_src_test
103 -
104 - # Clean up afterwards
105 - kill "$(<"${redis_pid}")" || die
106 -}
107 -
108 -pkg_postinst() {
109 - optfeature "Mock aioredis" dev-python/aioredis
110 -}