1 |
commit: 008669c5312e0668e534d04539668e6576b8463c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 30 21:26:17 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 30 21:26:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=008669c5 |
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.6.1.ebuild | 76 ----------------------------- |
14 |
2 files changed, 77 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest |
17 |
index 8e906a712b54..a13e46a82b34 100644 |
18 |
--- a/dev-python/fakeredis/Manifest |
19 |
+++ b/dev-python/fakeredis/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST fakeredis-1.6.1.gh.tar.gz 70171 BLAKE2B f10ac8aaec73871153ac7557a40984e6752b7e3720c1890380bda4aad828003403b6207c5e4f4ace18814e6ad33355acca08ff53cc33cb43acb5d9955ea6e5fc SHA512 1a8718d277d15a887901ed29691af83a2aea57605edf8cf2dbdc00c397a62ea8c1ed21440adadcda431a8ae8f33c85b549c5458a958b1fb74996e54ab612cd13 |
22 |
DIST fakeredis-1.7.0.gh.tar.gz 71108 BLAKE2B 64b4c8aa2891ac6afd7789e5a8dce4d1a0ccd6a5083b410fd051d871d4ea9748e9d687eb27bbaeea646747f4bf170089d3ef711d6db0d6a88d8b7e755d165b6d SHA512 a8c67929e63196fea45b85097aaf6bf7402679510e471a8d13bdc0f7320e983107416d3e515fa85b1d6a6217fb82dbda7b4425c3c80ac54a1ac50eee875b0fbd |
23 |
|
24 |
diff --git a/dev-python/fakeredis/fakeredis-1.6.1.ebuild b/dev-python/fakeredis/fakeredis-1.6.1.ebuild |
25 |
deleted file mode 100644 |
26 |
index a48bc194340d..000000000000 |
27 |
--- a/dev-python/fakeredis/fakeredis-1.6.1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,76 +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-mock[${PYTHON_USEDEP}] |
61 |
- ) |
62 |
-" |
63 |
- |
64 |
-distutils_enable_tests pytest |
65 |
- |
66 |
-EPYTEST_DESELECT=( |
67 |
- test/test_aioredis2.py::test_blocking_unblock |
68 |
- test/test_aioredis2.py::test_pubsub |
69 |
- "test/test_aioredis2.py::test_repr[fake]" |
70 |
- test/test_hypothesis.py::TestJoint::test |
71 |
- test/test_hypothesis.py::TestFuzz::test |
72 |
-) |
73 |
- |
74 |
-python_test() { |
75 |
- local args=( |
76 |
- # tests requiring lupa (lua support) |
77 |
- -k 'not test_eval and not test_lua and not test_script' |
78 |
- ) |
79 |
- epytest "${args[@]}" |
80 |
-} |
81 |
- |
82 |
-src_test() { |
83 |
- local redis_pid="${T}"/redis.pid |
84 |
- local redis_port=6379 |
85 |
- local redis_test_config=" |
86 |
- daemonize yes |
87 |
- pidfile ${redis_pid} |
88 |
- port ${redis_port} |
89 |
- bind 127.0.0.1 |
90 |
- " |
91 |
- |
92 |
- einfo "Spawning Redis" |
93 |
- einfo "NOTE: Port ${redis_port} must be free" |
94 |
- "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die |
95 |
- |
96 |
- # Run the tests |
97 |
- distutils-r1_src_test |
98 |
- |
99 |
- # Clean up afterwards |
100 |
- kill "$(<"${redis_pid}")" || die |
101 |
-} |
102 |
- |
103 |
-pkg_postinst() { |
104 |
- optfeature "Mock aioredis" dev-python/aioredis |
105 |
-} |