1 |
commit: ec92277b3a0bf883e12149503a08aed25a852597 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 30 09:33:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 30 09:33:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec92277b |
7 |
|
8 |
dev-python/rq: add 1.9.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/rq/Manifest | 1 + |
13 |
dev-python/rq/rq-1.9.0.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest |
17 |
index 92be7df584c..3f2c9ad7577 100644 |
18 |
--- a/dev-python/rq/Manifest |
19 |
+++ b/dev-python/rq/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST rq-1.8.1.tar.gz 585211 BLAKE2B 17feb07cb376c5aef88a7aab6d716f58a19f62f19db6c6b0490b4f666981e40304c6a23c88669a0aef9b75a39ce8cb85a9b10a2d42e83e646cdcb6282167d8f9 SHA512 b9df7b4e894a5da693827ff720be3068336d82d2f17928faf5ae6133b042ac2f98a3d673bb2ed86c9351479669e9ef0e4fffcb1dba9b8853f6f793db4a4678f8 |
22 |
+DIST rq-1.9.0.tar.gz 592217 BLAKE2B 831fbc7a3fe23ead59041e2556d37e4aa885a21bffa9aeeb0765382e84b56a2ee6d34a864cb03a9a12274c8ac80b714f10a7752d0bae7a79b8e2e7149be4aea7 SHA512 a2ec7b05fe1dda983cfb30182401c6e5367c54b7649ddcb1d3c6d0f0a5f6583665b39ed7c1cb6bc37d067926f089e3fd80ea7558856233edc1bca8234aa728aa |
23 |
|
24 |
diff --git a/dev-python/rq/rq-1.9.0.ebuild b/dev-python/rq/rq-1.9.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..61e8398709e |
27 |
--- /dev/null |
28 |
+++ b/dev-python/rq/rq-1.9.0.ebuild |
29 |
@@ -0,0 +1,53 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="simple, lightweight library for creating and processing background jobs" |
39 |
+HOMEPAGE="https://python-rq.org https://github.com/rq/rq" |
40 |
+SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >=dev-python/click-5.0[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/redis-py-3.5.0[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+BDEPEND=" |
51 |
+ test? ( |
52 |
+ dev-db/redis |
53 |
+ dev-python/mock[${PYTHON_USEDEP}] |
54 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
55 |
+ dev-python/sentry-sdk[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+ |
59 |
+distutils_enable_tests --install pytest |
60 |
+ |
61 |
+src_test() { |
62 |
+ local redis_pid="${T}"/redis.pid |
63 |
+ local redis_port=6379 |
64 |
+ local redis_test_config="daemonize yes |
65 |
+ pidfile ${redis_pid} |
66 |
+ port ${redis_port} |
67 |
+ bind 127.0.0.1 |
68 |
+ " |
69 |
+ |
70 |
+ # Spawn Redis itself for testing purposes |
71 |
+ # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. |
72 |
+ # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. |
73 |
+ elog "Spawning Redis" |
74 |
+ elog "NOTE: Port ${redis_port} must be free" |
75 |
+ /usr/sbin/redis-server - <<< "${redis_test_config}" || die |
76 |
+ |
77 |
+ # Run the actual tests |
78 |
+ distutils-r1_src_test |
79 |
+ |
80 |
+ # Clean up afterwards |
81 |
+ kill "$(<"${redis_pid}")" || die |
82 |
+} |