1 |
commit: 9058d9d712aca9fcb98df0a643620fed0e2a2dbd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 8 08:31:02 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 8 09:42:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9058d9d7 |
7 |
|
8 |
dev-python/redis-py: Bump to 4.1.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/redis-py/Manifest | 1 + |
13 |
dev-python/redis-py/redis-py-4.1.3.ebuild | 78 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 79 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/redis-py/Manifest b/dev-python/redis-py/Manifest |
17 |
index 216f67127eae..ff2d0e2bb226 100644 |
18 |
--- a/dev-python/redis-py/Manifest |
19 |
+++ b/dev-python/redis-py/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST redis-py-4.1.0.tar.gz 2346542 BLAKE2B 3d59f904f376df7bca14dcd7bc8547d7a7b41b8d934a50ade6dbf5e74f3da8deef59b3b7cf683fe3c7389859f76fe1d3307f91b52250da945f91b90c629640ab SHA512 85cd09570f4faf34a735befd0677aa8ca2cb0d62b0285c4c040380c2440f2774e47762ec4219381294465343353a15804b96f06b4d6eefa7159a224eb9e72001 |
22 |
DIST redis-py-4.1.1.tar.gz 2349319 BLAKE2B adebda19239e1fd4cf685c0de7a9b2c2fc4e8f23df0e80f2ecdf5f4b9b8b2698fbab613975bd380ea74dc275710d8ed58ee0720486c079bf554612cb7d8b392e SHA512 a974a910dcbaf75516e311badbe6e019cdce668a6d8cd918503934bb92bf97f7ea373fae32139f89a9eecdb360184ae42d24d742ef8b008e95eae648bd992e64 |
23 |
DIST redis-py-4.1.2.tar.gz 2349862 BLAKE2B 3e68918654e63c3403f2408350b2a877027a3c3990b623818332e0e77e1fbaa413e85912ea586a90788a87e0206ebe408ab55df522864dc534907c31a690c0c1 SHA512 beb6e50051eae61e84e7cf37f9f3e3efbc404d49e506b0b3bdae0d0c45fd940f12c801434a6394505519bf327b5933c076ad4f8c66ad812441bc08b3aa682542 |
24 |
+DIST redis-py-4.1.3.tar.gz 2349885 BLAKE2B d1c16a88e7ec70cf2b954fa9cf841f971c02023b7c9387e3e680e16972d546347ee454febf096e54f7bfcd4dabf163e22e1a0ba3186cbb9417cdd7a613d5a992 SHA512 797c1ee4ff4f0e32b52add5bc1cc81fd36cb1eb4d6f9328b38dca46c79a01bc105bc172f56d3bea20d802ee7a6eb934c2ee3ab5f611a49d77f9c4c50d7a4b0d8 |
25 |
|
26 |
diff --git a/dev-python/redis-py/redis-py-4.1.3.ebuild b/dev-python/redis-py/redis-py-4.1.3.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..c0b0dc09baf3 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/redis-py/redis-py-4.1.3.ebuild |
31 |
@@ -0,0 +1,78 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+MY_PN="redis" |
43 |
+MY_P="${MY_PN}-${PV}" |
44 |
+ |
45 |
+DESCRIPTION="Python client for Redis key-value store" |
46 |
+HOMEPAGE="https://github.com/redis/redis-py" |
47 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" |
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/deprecated[${PYTHON_USEDEP}]" |
56 |
+BDEPEND=" |
57 |
+ test? ( |
58 |
+ dev-db/redis |
59 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
60 |
+ ) |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+python_test() { |
66 |
+ local EPYTEST_DESELECT=( |
67 |
+ # Flaky test |
68 |
+ tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock |
69 |
+ |
70 |
+ # Needs a second Redis running |
71 |
+ tests/test_commands.py::TestRedisCommands::test_sync |
72 |
+ tests/test_commands.py::TestRedisCommands::test_psync |
73 |
+ ) |
74 |
+ |
75 |
+ local EPYTEST_IGNORE=( |
76 |
+ # SSL tests need Docker/stunnel: |
77 |
+ # https://github.com/redis/redis-py/commit/18c6809b761bc6755349e1d7e08e74e857ec2c65 |
78 |
+ tests/test_ssl.py |
79 |
+ |
80 |
+ # Needs multiple Redises running |
81 |
+ tests/test_cluster.py |
82 |
+ ) |
83 |
+ |
84 |
+ epytest -k "not redismod and not ssl" |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ local redis_pid="${T}"/redis.pid |
89 |
+ local redis_port=6379 |
90 |
+ |
91 |
+ # Spawn Redis itself for testing purposes |
92 |
+ # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. |
93 |
+ # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. |
94 |
+ einfo "Spawning Redis" |
95 |
+ einfo "NOTE: Port ${redis_port} must be free" |
96 |
+ # "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die |
97 |
+ "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" |
98 |
+ daemonize yes |
99 |
+ pidfile ${redis_pid} |
100 |
+ port ${redis_port} |
101 |
+ bind 127.0.0.1 |
102 |
+ EOF |
103 |
+ |
104 |
+ # Run the tests |
105 |
+ distutils-r1_src_test |
106 |
+ |
107 |
+ # Clean up afterwards |
108 |
+ kill "$(<"${redis_pid}")" || die |
109 |
+} |