1 |
commit: 7d36f0dcfd9c6cc9557eb2b0e3260827d154d946 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 7 22:31:03 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 7 23:27:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d36f0dc |
7 |
|
8 |
dev-python/rq: Bump to 1.10.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/rq/Manifest | 1 + |
13 |
dev-python/rq/rq-1.10.1.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest |
17 |
index 23ae4a531bfc..500022809a50 100644 |
18 |
--- a/dev-python/rq/Manifest |
19 |
+++ b/dev-python/rq/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST rq-1.10.1.tar.gz 599678 BLAKE2B 0673ca0eea69c3f86e50f5609a9c4ed2c2d93d331479510365a744461a5d878e6de6a9683356562754a25760f8ba1d8a65f6d5acfe878e488a70c54dc0bb5b54 SHA512 1a12bd5db27eb3f9303b2f3465c2f22092f7eebfabfc1e6aa7f65de7ea139df3833f9bbdc7061de564b2418608641b3755993bb918efbf93b04df67ca942ea09 |
22 |
DIST rq-1.10.tar.gz 598643 BLAKE2B 503c2e45d134434373eb89ce205dc1a82f16e0281c1f872046d51538b3352b0ffeeef72f64991d093f271c276c1a8a3be92fdda4d7db3e083549f69ea7a04560 SHA512 7e2de3e36309eb3c095d34c28d9cba340d0699b8b4b457491d12420bfc1370e0336dc10f4f1115e83ac0ea8884500750895417f8b5c2090105d3c9e32d1b5bec |
23 |
|
24 |
diff --git a/dev-python/rq/rq-1.10.1.ebuild b/dev-python/rq/rq-1.10.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..165a441d99e5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/rq/rq-1.10.1.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=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..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 |
+} |