1 |
commit: c246db6e9dc064e25e2f4dec44bd3af18dcd6062 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 2 20:22:51 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 20:22:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c246db6e |
7 |
|
8 |
dev-python/rq: bump to 1.5.0 |
9 |
|
10 |
* Run tests |
11 |
* Use Github tarball to have tests |
12 |
* Drop ppc{,64} keyword temporarily for new test dep |
13 |
(dev-python/sentry-sdk) |
14 |
* Tighten dev-python/redis-py dependency |
15 |
|
16 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
dev-python/rq/Manifest | 1 + |
20 |
dev-python/rq/rq-1.5.0.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 63 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/rq/Manifest b/dev-python/rq/Manifest |
24 |
index f6fb3743c42..165747160d9 100644 |
25 |
--- a/dev-python/rq/Manifest |
26 |
+++ b/dev-python/rq/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST rq-1.3.0.tar.gz 50906 BLAKE2B 073ef65c90b2f4cab7505148133cf9e8652f6915bcb34d96b61fca2eb3096d5eb8fb506dfa3d22f402d4ef7ff8e5456faa3bdf7ad6586cfa563b7b2c2da8cb95 SHA512 3c7c3b63a7068ada14c39fa21631fa35d336955c8f5b7b5fbf3d75a99b046abacc2ff28a3a58fc03d587be8bf8e22eea33d31142d3be880afc49287a004ff782 |
29 |
DIST rq-1.4.3.tar.gz 52258 BLAKE2B fd2bb19239ac3011005b34cf041e7736794a27b2097a7ff1808a716d45ad224ad349e316f172308175174f59ff0d3d2bbe0c6778bd66cdad6755da2740898c0d SHA512 177c748148a109efaeddf14b3847e7980882f385ba0e346ccfa72983d584f1c739417383c6eec83370a66f1ceeb5f955de9d5ccf87e4136074aa52e2f9144bd3 |
30 |
+DIST rq-1.5.0.tar.gz 569320 BLAKE2B 5349f6e806c5348e584513bf8fe8828c44909b8f4e53fcdfe40e0c617f162859dbc89d4595993c29227a25cef5b6ddbb758c51c3e50b442ada62eaca0585490a SHA512 87eb83de529afe3a1e0a9f2b1727aba97482e3e55024aede29ad6e12ed5b92ca147bef8d720a09b34939c04ac5e37642147aea5b1b7686ed4b2aaacdcf998f6d |
31 |
|
32 |
diff --git a/dev-python/rq/rq-1.5.0.ebuild b/dev-python/rq/rq-1.5.0.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..a731f4cecab |
35 |
--- /dev/null |
36 |
+++ b/dev-python/rq/rq-1.5.0.ebuild |
37 |
@@ -0,0 +1,62 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
44 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
45 |
+ |
46 |
+inherit distutils-r1 |
47 |
+ |
48 |
+DESCRIPTION="simple, lightweight library for creating and processing background jobs" |
49 |
+HOMEPAGE="https://python-rq.org https://github.com/rq/rq" |
50 |
+SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
55 |
+ |
56 |
+BDEPEND=" |
57 |
+ test? ( dev-python/sentry-sdk[${PYTHON_USEDEP}] ) |
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 |
+} |