1 |
commit: 66eda9aaa11559bc6961a5e6f8806c42d5bd98e8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 05:35:29 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 05:35:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66eda9aa |
7 |
|
8 |
dev-python/rq: restore 1.5.0 |
9 |
|
10 |
Needed to use as a stable candidate. |
11 |
|
12 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-python/rq/Manifest | 1 + |
16 |
dev-python/rq/rq-1.5.0.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 67 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest |
20 |
index eb0f63be7e9..fc1c7241d1d 100644 |
21 |
--- a/dev-python/rq/Manifest |
22 |
+++ b/dev-python/rq/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST rq-1.4.3.tar.gz 52258 BLAKE2B fd2bb19239ac3011005b34cf041e7736794a27b2097a7ff1808a716d45ad224ad349e316f172308175174f59ff0d3d2bbe0c6778bd66cdad6755da2740898c0d SHA512 177c748148a109efaeddf14b3847e7980882f385ba0e346ccfa72983d584f1c739417383c6eec83370a66f1ceeb5f955de9d5ccf87e4136074aa52e2f9144bd3 |
25 |
+DIST rq-1.5.0.tar.gz 569320 BLAKE2B 5349f6e806c5348e584513bf8fe8828c44909b8f4e53fcdfe40e0c617f162859dbc89d4595993c29227a25cef5b6ddbb758c51c3e50b442ada62eaca0585490a SHA512 87eb83de529afe3a1e0a9f2b1727aba97482e3e55024aede29ad6e12ed5b92ca147bef8d720a09b34939c04ac5e37642147aea5b1b7686ed4b2aaacdcf998f6d |
26 |
DIST rq-1.5.1.tar.gz 569967 BLAKE2B 9de43fa2d88a58186e8889163f4c1ea92da068c3652c5e32008a39c0e3b27e06f4a1c696a88d1dbf5b05d280bff9c1c56a1995673e9d0ff3fb3a50498729e96b SHA512 2a03b79c7f1b253e2974007616ad3342e0b98ef9f57b0ca9dd41ecb4319074cec3ae4ba5f8958f54a1c2a6342062d74a33ec6d03689f3a89074854483af74b4f |
27 |
|
28 |
diff --git a/dev-python/rq/rq-1.5.0.ebuild b/dev-python/rq/rq-1.5.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..d62e57cf150 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/rq/rq-1.5.0.ebuild |
33 |
@@ -0,0 +1,66 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
40 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="simple, lightweight library for creating and processing background jobs" |
45 |
+HOMEPAGE="https://python-rq.org https://github.com/rq/rq" |
46 |
+SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-db/redis |
55 |
+ dev-python/mock[${PYTHON_USEDEP}] |
56 |
+ dev-python/sentry-sdk[${PYTHON_USEDEP}] |
57 |
+ ) |
58 |
+" |
59 |
+DEPEND=" |
60 |
+ >=dev-python/click-5.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/redis-py-3.5.0[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+RDEPEND="${DEPEND}" |
64 |
+ |
65 |
+distutils_enable_tests pytest |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/${PN}-1.5.0-no-install-tests.patch" |
69 |
+) |
70 |
+ |
71 |
+src_test() { |
72 |
+ local redis_pid="${T}"/redis.pid |
73 |
+ local redis_port=6379 |
74 |
+ local redis_test_config="daemonize yes |
75 |
+ pidfile ${redis_pid} |
76 |
+ port ${redis_port} |
77 |
+ bind 127.0.0.1 |
78 |
+ " |
79 |
+ |
80 |
+ # Spawn Redis itself for testing purposes |
81 |
+ # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. |
82 |
+ # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. |
83 |
+ elog "Spawning Redis" |
84 |
+ elog "NOTE: Port ${redis_port} must be free" |
85 |
+ /usr/sbin/redis-server - <<< "${redis_test_config}" || die |
86 |
+ |
87 |
+ # Run the actual tests |
88 |
+ distutils-r1_src_test |
89 |
+ |
90 |
+ # Clean up afterwards |
91 |
+ kill "$(<"${redis_pid}")" || die |
92 |
+} |
93 |
+ |
94 |
+python_test() { |
95 |
+ # Tests needing rqworker: |
96 |
+ # TestWorkerSubprocess::test_run_access_self, test_run_empty_queue, test_run_scheduled_access_self |
97 |
+ distutils_install_for_testing |
98 |
+ PATH="${BUILD_DIR}/test/scripts/:${PATH}" pytest -vv || die "Testsuite failed under ${EPYTHON}" |
99 |
+} |