1 |
commit: b5ff0178e406ba4ad47e46a6c1fd63f1b5f39655 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 27 22:57:08 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 27 23:18:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5ff0178 |
7 |
|
8 |
dev-python/fakeredis: Bump to 1.5.1 |
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.5.1.ebuild | 44 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest |
17 |
index b360bc563ea..aee3e9d2605 100644 |
18 |
--- a/dev-python/fakeredis/Manifest |
19 |
+++ b/dev-python/fakeredis/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST fakeredis-1.5.0.gh.tar.gz 66371 BLAKE2B da9a961b9e163ba8221193c9c353f17bd23a710bd105b4fc6b9249a857828ece0b3551e3890818b0519f96aa9691166658332c25b796b22827f0951d3f50cebf SHA512 5bd4965c36abada4b937b635318d58e88ba76d30ff577b0f9b9134a94a3407a8c0e92d953e6b5299cabfe11ebe5a785e9d75406e8a07a4257674be64f6b8cffb |
22 |
+DIST fakeredis-1.5.1.gh.tar.gz 67064 BLAKE2B 6eac029b7de6fb2c9b56a60655b6a224cdcba25fa86662a0423044ab97248984c4c6cfbaacbe4bbb2e3fc6826693791f232c6c55d7f15995d0e5bd00370a9ba8 SHA512 74a238573f9f911e9a39885b52d8c908d51d5620e346b8927c161111ce193566c315999f71d3edb1cb1326970985fd73d533b5483afe0c98ad76798a3c15e242 |
23 |
|
24 |
diff --git a/dev-python/fakeredis/fakeredis-1.5.1.ebuild b/dev-python/fakeredis/fakeredis-1.5.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7c66ea7651c |
27 |
--- /dev/null |
28 |
+++ b/dev-python/fakeredis/fakeredis-1.5.1.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 2020-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( pypy3 python3_{7..9} ) |
36 |
+inherit distutils-r1 |
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-python/hypothesis[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+python_test() { |
65 |
+ local excludes=( |
66 |
+ # tests for use with aioredis, not packaged in ::gentoo |
67 |
+ --ignore test/test_aioredis.py |
68 |
+ # tests requiring lupa (lua support) |
69 |
+ -k 'not test_eval and not test_lua and not test_script' |
70 |
+ ) |
71 |
+ |
72 |
+ epytest "${excludes[@]}" |
73 |
+} |